Tooltip can be outside of viewport if using a "tip" #800

Open
loueradun opened this Issue Jul 25, 2016 · 0 comments

Projects

None yet

1 participant

@loueradun

When calculating if a tooltip is outside of the viewport, it using the height of the tooltip as a distance from the target, and if it is less than the height, then it is outside of the viewport. The problem is it doesn't take into account the height of the tip. This can cause the tooltip to be shown hanging outside of the viewport (or off the screen in my case).

Please see the fiddle I created to demo this issue (scroll down and pop the tooltip, then continue scrolling down to see how it interacts with the top edge of the viewport):
http://jsfiddle.net/bgkrjpdx/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment