aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tooltip.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-04-23 09:41:19 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-04-23 09:41:19 +0200
commit99900d57cec7a2b3b4b09397b101bb8d7a7d449c (patch)
tree644aaec5f9543ef1b5bd0f4e9d4d6b82bc17bba4 /ui/jquery.ui.tooltip.js
parent8cba84c246e6c9df8af2fb974aff70e576f51961 (diff)
downloadjquery-ui-99900d57cec7a2b3b4b09397b101bb8d7a7d449c.tar.gz
jquery-ui-99900d57cec7a2b3b4b09397b101bb8d7a7d449c.zip
Tooltip: Improve fadeout animation to handle case where tooltip overlays the element, causing it to hide instantly and never appearing again
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r--ui/jquery.ui.tooltip.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index 13c809f45..f64f40248 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/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();