]> source.dussan.org Git - jquery-ui.git/commitdiff
Revert "Position: Handle sub-pixel offsets better in Firefox. Fixes #6000 - Position...
authorScott González <scott.gonzalez@gmail.com>
Fri, 22 Oct 2010 19:25:12 +0000 (15:25 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 22 Oct 2010 19:25:12 +0000 (15:25 -0400)
This reverts commit 32264f7ad12609b316189fd013cda63b41c8b271.

ui/jquery.ui.position.js

index 9d490d2749dfc26ce180413105c049d9405b0469..deacedbcc514c070f5231747ac4524c32349ea48 100644 (file)
@@ -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,