Skip to content

Incorrect positioning on a element? #673

@louisameline

Description

@louisameline

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:

2017-03-23_123122

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

2017-03-23_123403

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions