diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-10-21 23:25:42 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-10-21 23:25:42 -0400 |
commit | 32264f7ad12609b316189fd013cda63b41c8b271 (patch) | |
tree | 72786b29e8f0786be15b503be617abdcbd4d8f1b | |
parent | 19f9c3a559497c893a4fcdbc8cbbbacef60c315c (diff) | |
download | jquery-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.
-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, |