Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip does not work within flex boxes #49

Open
bpatterson-r7 opened this issue Mar 22, 2017 · 2 comments
Open

Tooltip does not work within flex boxes #49

bpatterson-r7 opened this issue Mar 22, 2017 · 2 comments

Comments

@bpatterson-r7
Copy link

I have an application with a chromewrap that wraps all of the content in my application in a flexible box. When using redux-tooltip, the origin location is calculated properly, but the tooltip location is improperly offset by the size of the chromewrap. If I move the tooltip to outside of the chromewrap, it opens at the proper location.

A separate issue that I have a feeling is related to the same functionality is that when you hover over an origin and resize the window, (thus moving the location of the origin because it is within a flexbox), the tooltip opens at the wrong offset. I imagine this is because the tooltip location is saved in the state.

I want to keep looking at this, but I want to make sure that if I make a PR it will be looked at this week because I want to use this library for a time sensitive project. Opinions?

@safonoi
Copy link

safonoi commented Mar 27, 2017

I think you better make a fork and use it in your project.

@bpatterson-r7
Copy link
Author

As a temporary fix I just moved the tooltip Component outside of the flexed areas so it shows up properly initially. It will be shifted on resize, but this will give me more time to work on this so I'll put up a PR eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants