diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-12-01 11:23:06 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-12-01 11:23:06 -0500 |
commit | c667cff22d8ef352b81338e2834379678fb2dd27 (patch) | |
tree | 0b549a587086948c0f859f248d9f53d5f587f705 /ui/jquery.ui.position.js | |
parent | 40135bb09130a56aabc0d185b62a597cb45df0dc (diff) | |
download | jquery-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.js | 4 |
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, |