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

update tooltip.js #4342

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
4 changes: 3 additions & 1 deletion src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position'])

ttCss.width = ttBox.width + 'px';
ttCss.height = ttBox.height + 'px';

ttCss.visibility = 'visible';

// Now set the calculated positioning and size.
tooltip.css(ttCss);
Expand Down Expand Up @@ -225,7 +227,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position'])
ttScope.$apply(); // digest required as $apply is not called
}

tooltip.css({ display: 'block' });
tooltip.css({ display: 'block', visibility: 'hidden' });

positionTooltip();
}
Expand Down