Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap tooltip with absolute position

I'm having strange issue when having absolutely positioned element with Bootstrap tooltip.

Tooltip is not rendered correctly according to parent element, please see fiddle: [http://jsfiddle.net/QsYPv/152/][1]

When parent element is not positioned absolutely everything is working just fine. Any ideas how to resolve this issue?

Note: I can't set CSS with of absolutely positioned element?

like image 486
SirInfant Avatar asked Aug 04 '15 14:08

SirInfant


1 Answers

this should fix it

$('a[data-toggle="tooltip"]').tooltip({
   container: 'body'
});
like image 194
stackoverfloweth Avatar answered Sep 23 '22 12:09

stackoverfloweth