From: Scott González Date: Fri, 22 Oct 2010 19:25:12 +0000 (-0400) Subject: Revert "Position: Handle sub-pixel offsets better in Firefox. Fixes #6000 - Position... X-Git-Tag: 1.8.6~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a0847f3a08dfc259d8ba7f6ba7da16653cf15183;p=jquery-ui.git Revert "Position: Handle sub-pixel offsets better in Firefox. Fixes #6000 - Position: Sometimes positioning is off by 1px in Firefox." This reverts commit 32264f7ad12609b316189fd013cda63b41c8b271. --- 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,