diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-23 09:41:19 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-23 09:41:19 +0200 |
commit | 99900d57cec7a2b3b4b09397b101bb8d7a7d449c (patch) | |
tree | 644aaec5f9543ef1b5bd0f4e9d4d6b82bc17bba4 /ui/jquery.ui.tooltip.js | |
parent | 8cba84c246e6c9df8af2fb974aff70e576f51961 (diff) | |
download | jquery-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.js | 4 |
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(); |