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
19f9c3a559
commit
32264f7ad1
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)
|
// prevent fractions (see #5280)
|
||||||
position.left = parseInt( position.left );
|
position.left = Math.round( position.left );
|
||||||
position.top = parseInt( position.top );
|
position.top = Math.round( position.top );
|
||||||
|
|
||||||
collisionPosition = {
|
collisionPosition = {
|
||||||
left: position.left - marginLeft,
|
left: position.left - marginLeft,
|
||||||
|
Loading…
Reference in New Issue
Block a user