angular-ui / bootstrap-bower

This is a bower repository to hold Angular UI Bootstrap releases.
http://angular-ui.github.com/bootstrap/
158 stars 326 forks source link

tooltip positioning issue #72

Closed LorenzoCoronati closed 8 years ago

LorenzoCoronati commented 8 years ago

The function positionElements does not check wether the targetElemPos.left value is negative and therefore the tooltip gets positioned outside the left margin. The line targetElemPos.left = Math.round(targetElemPos.left); IMO should be changed to targetElemPos.left = ((targetElemPos.left < 0) ? 0 : Math.round(targetElemPos.left));

pkozlowski-opensource commented 8 years ago