forked from angular-ui/bootstrap
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tooltip): update placement on content change
Given that the recompute of position is a heavy calculation and the only immune placement to this bug was `right` , two kind of fixes had to been made: 1. For `left` placement use the right css style option instead of left. 2. For the `top` and `bottom` placement keep reference of the last known middle position of the directive element and use it when re-calculating the position with the new tooltip width. Closes angular-ui#96
- Loading branch information
Showing
1 changed file
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters