web/res/metadataplayer/Tooltip.js
changeset 765 8cde4d15a173
parent 755 d50aeed9a54b
child 1198 ff4b567d51f2
--- a/web/res/metadataplayer/Tooltip.js	Wed Jan 16 18:25:10 2013 +0100
+++ b/web/res/metadataplayer/Tooltip.js	Thu Jan 17 15:17:58 2013 +0100
@@ -56,8 +56,8 @@
         shift = Math.max(x - this.__halfWidth - this.min_x, - this.__maxShift);
     }
     
-    if (typeof this.max_x !== "undefined" && (x + this.__halfWidth > this.max_x)) {
-        shift = Math.min(x + this.__halfWidth - this.max_x, this.__maxShift);
+    if (typeof this.max_x !== "undefined" && (+x + this.__halfWidth > this.max_x)) {
+        shift = Math.min(+ x + this.__halfWidth - this.max_x, this.__maxShift);
     }
     
     this.$tooltip.css({