diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-03-27 10:57:33 +0100 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-03-27 10:57:33 +0100 |
commit | c49be0be1a57cac325f021ffddc2f0fbccde1553 (patch) | |
tree | 3a7582079871ebf3510d905eb1ffbb83c9a12263 /ui | |
parent | 551fa98ae4e1eafd3a152ca4897166537a069f16 (diff) | |
parent | a0f754faf55c1da38125a02aecf304a730f5b0c5 (diff) | |
download | jquery-ui-c49be0be1a57cac325f021ffddc2f0fbccde1553.tar.gz jquery-ui-c49be0be1a57cac325f021ffddc2f0fbccde1553.zip |
Merge branch 'master' of github.com:jquery/jquery-ui
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.position.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index f01640e18..11f8baa06 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -113,6 +113,10 @@ $.fn.position = function( options ) { position.top -= elemHeight / 2; } + // prevent fractions (see #5280) + position.left = parseInt( position.left ); + position.top = parseInt( position.top ); + $.each( [ "left", "top" ], function( i, dir ) { if ( $.ui.position[ collision[i] ] ) { $.ui.position[ collision[i] ][ dir ]( position, { |