aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-10-21 23:25:42 -0400
committerScott González <scott.gonzalez@gmail.com>2010-10-21 23:25:42 -0400
commit32264f7ad12609b316189fd013cda63b41c8b271 (patch)
tree72786b29e8f0786be15b503be617abdcbd4d8f1b /ui
parent19f9c3a559497c893a4fcdbc8cbbbacef60c315c (diff)
downloadjquery-ui-32264f7ad12609b316189fd013cda63b41c8b271.tar.gz
jquery-ui-32264f7ad12609b316189fd013cda63b41c8b271.zip
Position: Handle sub-pixel offsets better in Firefox. Fixes #6000 - Position: Sometimes positioning is off by 1px in Firefox.
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 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,