From 6c82b2b213ed5ddd4b3c9b890a1a400aeb714528 Mon Sep 17 00:00:00 2001 From: RobJacobs Date: Wed, 14 Oct 2015 15:22:05 -0400 Subject: [PATCH] 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 --- src/tooltip/tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tooltip/tooltip.js b/src/tooltip/tooltip.js index f2d1dd7297..ad99f2dec4 100644 --- a/src/tooltip/tooltip.js +++ b/src/tooltip/tooltip.js @@ -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;"' + '>' + '';