aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.position.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-12-01 11:23:06 -0500
committerScott González <scott.gonzalez@gmail.com>2010-12-01 11:23:06 -0500
commitc667cff22d8ef352b81338e2834379678fb2dd27 (patch)
tree0b549a587086948c0f859f248d9f53d5f587f705 /ui/jquery.ui.position.js
parent40135bb09130a56aabc0d185b62a597cb45df0dc (diff)
downloadjquery-ui-c667cff22d8ef352b81338e2834379678fb2dd27.tar.gz
jquery-ui-c667cff22d8ef352b81338e2834379678fb2dd27.zip
Position: Handle sub-pixel offsets better in Firefox. Fixes #6000 - Position: Sometimes positioning is off by 1px in Firefox.
Diffstat (limited to 'ui/jquery.ui.position.js')
-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 deacedbcc..9d490d274 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 = parseInt( position.left );
- position.top = parseInt( position.top );
+ position.left = Math.round( position.left );
+ position.top = Math.round( position.top );
collisionPosition = {
left: position.left - marginLeft,