aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-10-22 15:25:12 -0400
committerScott González <scott.gonzalez@gmail.com>2010-10-22 15:25:12 -0400
commita0847f3a08dfc259d8ba7f6ba7da16653cf15183 (patch)
tree70e2ae0804daf12272e837b32f80b6ad1db96d91 /ui
parent32264f7ad12609b316189fd013cda63b41c8b271 (diff)
downloadjquery-ui-a0847f3a08dfc259d8ba7f6ba7da16653cf15183.tar.gz
jquery-ui-a0847f3a08dfc259d8ba7f6ba7da16653cf15183.zip
Revert "Position: Handle sub-pixel offsets better in Firefox. Fixes #6000 - Position: Sometimes positioning is off by 1px in Firefox."
This reverts commit 32264f7ad12609b316189fd013cda63b41c8b271.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.position.js4
1 files 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,