angular-ui/bootstrap-bower

tooltip positioning issue

Closed this issue · 1 comments

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));