Reputation: 859
I am having a problem with bootstrap's popovers when inserting images. On the first click, the arrow on the left is sometimes too low. On the second click everything is ok.
var content = '<p>Have a nice day</p><img src="https://si0.twimg.com/a/1339639284/images/three_circles/twitter-bird-white-on-blue.png" />';
$("#blob").popover({ content: content, html: true });
This occurs as well, but not so often, if the dimensions of the image are explicitly specified.
Maybe it is possible to draw the popover twice on click? Any help would be appreciated.
Rendering the image in a hidden div on the page as well solved the problem though I do not understand why it does not work with specified width and height on the image ...
Upvotes: 5
Views: 836
Reputation: 1714
your problem is one of the css rule of popover class : max-width: 276px;
so you just have to add a new rule like : max-width: none;
Hope i help !
Upvotes: 2