src/js/widgets/tooltipWidget.js
branchpopcorn-port
changeset 658 cfaf0986d22b
parent 646 2b8b2a94ee92
child 685 973d9a495d11
--- a/src/js/widgets/tooltipWidget.js	Wed Jan 18 10:21:23 2012 +0100
+++ b/src/js/widgets/tooltipWidget.js	Wed Jan 18 10:21:53 2012 +0100
@@ -30,7 +30,12 @@
   this.selector.find(".tipcolor").css("background-color", color);
   this._displayedText = text;
 	this.selector.find(".tiptext").text(text);
-  //this.selector.find(".tip").css("left", x).css("top", y);  
+  
+  if (x < 0)
+    x = 0;
+  if (y < 0)
+    y = 0;
+  
   this.selector.find(".tip").css("left", x).css("top", y);
   this.selector.find(".tip").show();
   this._shown = true;