From 07b44e20c8698aefcbddc62c64f1293c2b445e19 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 24 Apr 2012 08:19:05 +0000 Subject: [PATCH] when positioning tooltip, make sure x is an integer --- source/Ox.UI/js/Window/Ox.Tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Window/Ox.Tooltip.js b/source/Ox.UI/js/Window/Ox.Tooltip.js index f5ae5831..2e013423 100644 --- a/source/Ox.UI/js/Window/Ox.Tooltip.js +++ b/source/Ox.UI/js/Window/Ox.Tooltip.js @@ -69,7 +69,7 @@ Ox.Tooltip = function(options, self) { width = that.width(); height = that.height(); left = Ox.limit( - self.x - width / 2, 0, window.innerWidth - width - 8 + self.x - Math.round(width / 2), 0, window.innerWidth - width - 8 ); top = self.y > window.innerHeight - height - 16 ? self.y - 16 - height