Tooltip: Improve fadeout animation to handle case where tooltip overlays the element, causing it to hide instantly and never appearing again

This commit is contained in:
jzaefferer 2010-04-23 09:41:19 +02:00
parent 8cba84c246
commit 99900d57ce

View File

@ -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();