Skip to content

Commit

Permalink
fix(tooltip): scrollbar flashing
Browse files Browse the repository at this point in the history
When the tooltip is rendered for positioning scroll bars
may breifly appear depending on where the linked element
is positioned. This change adds a negative top and left
style to push the tooltip element out of view while it
is being measured and positioned.

Closes angular-ui#4550
Closes angular-ui#4623
Fixes angular-ui#4458
  • Loading branch information
RobJacobs authored and aroop committed Oct 16, 2015
1 parent e5e20a4 commit 4525f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
'animation="animation" ' +
'is-open="isOpen"' +
'origin-scope="origScope" ' +
'style="visibility: hidden; display: block;"' +
'style="visibility: hidden; display: block; top: -9999px; left: -9999px;"' +
'>' +
'</div>';

Expand Down

0 comments on commit 4525f3a

Please sign in to comment.