Skip to content

Commit

Permalink
Revert "Position: Handle sub-pixel offsets better in Firefox. Fixes #…
Browse files Browse the repository at this point in the history
…6000 - Position: Sometimes positioning is off by 1px in Firefox."

This reverts commit 32264f7.
  • Loading branch information
scottgonzalez committed Oct 22, 2010
1 parent 32264f7 commit a0847f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/jquery.ui.position.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ $.fn.position = function( options ) {
}

// prevent fractions (see #5280)
position.left = Math.round( position.left );
position.top = Math.round( position.top );
position.left = parseInt( position.left );
position.top = parseInt( position.top );

collisionPosition = {
left: position.left - marginLeft,
Expand Down

0 comments on commit a0847f3

Please sign in to comment.