diff -r 67a0cee0077f -r 8cde4d15a173 web/res/metadataplayer/Tooltip.js --- 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({