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

Powertip E with smart placement not showing tooltip when element next to browser right edge #177

Open
evbrew opened this issue Feb 8, 2019 · 1 comment

Comments

@evbrew
Copy link

evbrew commented Feb 8, 2019

What it says.
I have a table with text inputs in the cells.
Table is wider then the browser window.
The inputs in the last column do not show the tooltip.
If in debug mode i make the size of one of the inputs in that last column smaller so its not right up against the edge then the tooltip appears for that smaller input only (W placement).

Console logging the getViewportCollisions function, it correctly deduces collision for E, NE, SE but then it tries W and for some reason returns a collision (my tooltip is pretty small, maybe 40x40 pixels total - smaller then the input field which has size 50). It finally returns N as no collision, but still doesn't show anything.

@evbrew
Copy link
Author

evbrew commented Feb 8, 2019

ok, i figured out a little more, the tooltip is now showing up in the N placement but about 80pixels too high above my element. Not sure if that is just an issue with N on that element or indicative of something else.

What i would like to understand is why the smart placement is calculating N instead of W in this case?
I have a test fiddle here, if you mouse over the last column of the table you will see the placement be N instead of W.
https://jsfiddle.net/uhcL2b6k/

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

1 participant