Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap Popover viewport property

I'm trying the bootstrap's popover but I can not use it inside a container with

overflow: hidden;

To avoid this problem I tried to set the viewport property to "body", but this doesn't work because the popover is built in the same place of the target.

I also tried to update bootstrap to v3.3.4 but seems that viewport property is fully ignored!

like image 353
Tobia Avatar asked Mar 24 '15 13:03

Tobia


1 Answers

From bootstrap documentation, tooptip options:

Viewport: Keeps the popover within the bounds of this element.

Container: Appends the popover to a specific element.

You are looking for container not viewport option. container:'body'

like image 80
tmg Avatar answered Nov 12 '22 05:11

tmg