Skip to content

Commit a0847f3

Browse files
committed
Revert "Position: Handle sub-pixel offsets better in Firefox. Fixes #6000 - Position: Sometimes positioning is off by 1px in Firefox."
This reverts commit 32264f7.
1 parent 32264f7 commit a0847f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.position.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ $.fn.position = function( options ) {
122122
}
123123

124124
// prevent fractions (see #5280)
125-
position.left = Math.round( position.left );
126-
position.top = Math.round( position.top );
125+
position.left = parseInt( position.left );
126+
position.top = parseInt( position.top );
127127

128128
collisionPosition = {
129129
left: position.left - marginLeft,

0 commit comments

Comments
 (0)