From a0847f3a08dfc259d8ba7f6ba7da16653cf15183 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 22 Oct 2010 15:25:12 -0400 Subject: [PATCH] Revert "Position: Handle sub-pixel offsets better in Firefox. Fixes #6000 - Position: Sometimes positioning is off by 1px in Firefox." This reverts commit 32264f7ad12609b316189fd013cda63b41c8b271. --- ui/jquery.ui.position.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 9d490d274..deacedbcc 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -122,8 +122,8 @@ $.fn.position = function( options ) { } // prevent fractions (see #5280) - position.left = Math.round( position.left ); - position.top = Math.round( position.top ); + position.left = parseInt( position.left ); + position.top = parseInt( position.top ); collisionPosition = { left: position.left - marginLeft, -- 2.39.5