fixed a tooltip display bug. popcorn-port
authorhamidouk
Wed, 04 Jan 2012 13:06:14 +0100
branchpopcorn-port
changeset 579 179b32df9caa
parent 578 8dd6ebb7a79d
child 580 47fb5cd44900
fixed a tooltip display bug.
src/js/widgets/tooltipWidget.js
--- a/src/js/widgets/tooltipWidget.js	Wed Jan 04 11:38:24 2012 +0100
+++ b/src/js/widgets/tooltipWidget.js	Wed Jan 04 13:06:14 2012 +0100
@@ -24,9 +24,9 @@
 
 IriSP.TooltipWidget.prototype.show = function(text, color, x, y) {
 
-  if (this._displayedText == text)
+  if (this._displayedText == text && this._shown)
     return;
-  
+
   this.selector.find(".tipcolor").css("background-color", color);
   this._displayedText = text;
 	this.selector.find(".tiptext").text(text);