Skip to content

Commit 18a526a

Browse files
committed
Show tooltip before positioning it to fix scrolling issue, then hide again before animation
1 parent 9f56913 commit 18a526a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.tooltip.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ $.widget("ui.tooltip", {
104104
this.tooltip.css({
105105
top: 0,
106106
left: 0
107-
}).position($.extend(this.options.position, {
107+
}).show().position($.extend(this.options.position, {
108108
of: target
109-
}));
109+
})).hide();
110110

111111
this.tooltip.attr("aria-hidden", "false");
112112
target.attr("aria-describedby", this.tooltip.attr("id"));

0 commit comments

Comments
 (0)