Skip to content
Permalink
Browse files

Tooltip: Improve fadeout animation to handle case where tooltip overl…

…ays the element, causing it to hide instantly and never appearing again
  • Loading branch information...
jzaefferer committed Apr 23, 2010
1 parent 8cba84c commit 99900d57cec7a2b3b4b09397b101bb8d7a7d449c
Showing with 3 additions and 1 deletion.
  1. +3 −1 ui/jquery.ui.tooltip.js
@@ -133,7 +133,9 @@ $.widget("ui.tooltip", {
this.tooltip.attr("aria-hidden", "true");

if (this.tooltip.is(':animated'))
this.tooltip.stop().fadeTo("normal", 0);
this.tooltip.stop().fadeTo("normal", 0, function() {
$(this).hide().css("opacity", "");
});
else
this.tooltip.stop().fadeOut();

0 comments on commit 99900d5

Please sign in to comment.
You can’t perform that action at this time.