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

fix(tooltip): Tooltip causing scroll bars to quickly show #4550

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 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="display: none;"' +
'>' +
'</div>';

Expand Down Expand Up @@ -152,14 +152,14 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s

if (!positionTimeout) {
positionTimeout = $timeout(function() {
// Reset the positioning.
// Reset the positioning and show the tooltip.
tooltip.css({ top: 0, left: 0 });

// Now set the calculated positioning.
var ttCss = $position.positionElements(element, tooltip, ttScope.placement, appendToBody);
ttCss.top += 'px';
ttCss.left += 'px';
ttCss.visibility = 'visible';
ttCss.display = 'block';
tooltip.css(ttCss);

positionTimeout = null;
Expand Down