I noticed, as mentioned in the comments, that there is a class attached - uib-position-measure . It has 3 styles that cause the problem:
top: -9999px !importantleft: -9999px !importantvisibility: hidden !important
EDIT . I am reorganizing my post now that I have delved deeply into this. I still don't think I have a great solution, but at least there is information and options.
Solution 1
Just remove the criminal class uib-position-measure with javascript and then set the top and left styles to .tooltip .
Plunker
window.onload = function() { var tooltip = document.getElementsByClassName('tooltip')[0]; tooltip.className = tooltip.className.replace(/\buib-position-measure\b/,''); } .tooltip { top: 42px; left: 150px; }
Decision 2
Overwrite the style causing the problem with javascript.
Plunker
<script type="text/javascript"> window.onload = function() { var tooltip = document.getElementsByClassName('tooltip')[0]; tooltip.setAttribute("style", "visibility: visible !important; top: 42px !important; left: 150px !important;"); } </script>
Decision 3
I managed to find where the .uib-position-measure class is created in the ui-bootstrap.js file. I removed !important from visibility, top and left. After that, I was able to fix the problem with css in the .tooltip class.
Plunker
ui-bootstrap.js is the file I created, copied the original and changed the uib-position-measure class - it is located at the bottom of line 7327.
In style.css I just added the following:
.tooltip { visibility: visible; top: 42px; left: 150px; }
Linked Issue
I also managed to find a problem with GitHub related to this - https://github.com/angular-ui/bootstrap/pull/5530
Someone removed some inline styles and added them as a class so that they could be rewritten with CSS instead of using javascript. This might be the best way to handle this - https://github.com/angular-ui/bootstrap/pull/5530/commits/44643775dece535b3ffa62d7edae86eaa12ac154 . The problem is finding the location of the inline uib-position-measure style and handling it in the same way.
Tricky12
source share