Bootstrap: Bootstrap v4 Beta - Popover, Tooltip issue (popper.js)

Created on 17 Aug 2017  路  11Comments  路  Source: twbs/bootstrap

When a container has a set height, and the content overflows, and that overflowing content contains a tooltip or popover, the position of the popover/tooltip is not correct:

image

Live example:
https://www.codeply.com/go/HcvuTaMZPu

@FezVrasta may be able to provide insight?

Most helpful comment

Sorry guys, I'll try to work on that bug when I have some free time to allocate

All 11 comments

Argh, apparently this is an issue with popper.js directly.

https://github.com/FezVrasta/popper.js/issues/302

Closing...

Sorry guys, I'll try to work on that bug when I have some free time to allocate

this is a big bug! because a lot of people use html{ height:100%;} body{height:100%;} then have the content scroll. That means all popovers will fail to work almost _always_. It's not even _only_ the bug reported, but placements are _completely_ wrong generally. E.g. they appear top, should be bottom etc.

If I have to give my opinion, the whole practice of set a fixed height to html and body is quite bad.
It changes completely the behavior of the whole document without any kind of advantage.

Said that, it's still a bug and it will get fixed anytime soon.

If I have to give my opinion, the whole practice of set a fixed height to html and body is quite bad.

@FezVrasta while I agree with you, but it is still and will continue to be practiced based on client's demand and project requirements.

@myorangeca I'd be curious to see how this practice can need to be enforced to fulfill any requirement...

@FezVrasta the min-height and height for html & body is needed when having a left panel with absolute positioning.

the height of html and body is used as well for full screen intro parts of the page. The thing is, using 100vh can cause some issues on mobile devices

@FezVrasta Setting the height on the html or body isn't necessary to trigger this bug - simply set the height of any div, then set the content overflow to visible and make the the content overflow.

See my live example below for a perfectly sound use case, which is to create a cross browser 'sticky footer'.

https://www.codeply.com/go/HcvuTaMZPu

@DaleMckeown your bug has been fixed in Popper.[email protected] 馃帀

@FezVrasta Confirmed, it has! Thank you :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IamManchanda picture IamManchanda  路  3Comments

kamov picture kamov  路  3Comments

devfrey picture devfrey  路  3Comments

devdelimited picture devdelimited  路  3Comments

bellwood picture bellwood  路  3Comments