mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Position: Handle sub-pixel offsets better in Firefox. Fixes #6000 - Position: Sometimes positioning is off by 1px in Firefox.
This commit is contained in:
parent
40135bb091
commit
c667cff22d
4
ui/jquery.ui.position.js
vendored
4
ui/jquery.ui.position.js
vendored
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user