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

Incorrect positioning on a element? #673

louisameline opened this Issue Mar 23, 2017 · 0 comments


None yet
1 participant

louisameline commented Mar 23, 2017

I open this issue for future reference to demonstrate how a position may sometimes seem incorrect but is actually not.

Example with this html:
<h1 class="tooltip" title="World">Hello</h1>

This is how the tooltip is rendered:


It looks like a bug. But if you set a yellow background to the <h1> tag, you'll understand what's going on:


You can see that the element is actually bigger than it seems, and that the tooltip is accurately positioned on it. Sometimes it's the opposite: an element looks big but is actually small and it's just its content which is overflowing.

The bottom line is: make sure your element has the size you think it has.

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