Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 6c82b2b

Browse files
RobJacobswesleycho
authored andcommitted
fix(tooltip): scrollbar flashing
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 #4550 Closes #4623 Fixes #4458
1 parent 1f65d87 commit 6c82b2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tooltip/tooltip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
123123
'animation="animation" ' +
124124
'is-open="isOpen"' +
125125
'origin-scope="origScope" ' +
126-
'style="visibility: hidden; display: block;"' +
126+
'style="visibility: hidden; display: block; top: -9999px; left: -9999px;"' +
127127
'>' +
128128
'</div>';
129129

0 commit comments

Comments
 (0)