diff options
author | Aaron Eisenberger <aaronchi@gmail.com> | 2008-06-30 18:52:57 +0000 |
---|---|---|
committer | Aaron Eisenberger <aaronchi@gmail.com> | 2008-06-30 18:52:57 +0000 |
commit | c400e02621bb5a97d2028d86c946f3778ff2c9db (patch) | |
tree | 39efde01aa4eddc716f3e3e2e6c99f47f3c31b6b /ui | |
parent | 10747c3871bb191b825458fd00a6959c87635bb0 (diff) | |
download | jquery-ui-c400e02621bb5a97d2028d86c946f3778ff2c9db.tar.gz jquery-ui-c400e02621bb5a97d2028d86c946f3778ff2c9db.zip |
preserve percent values if they are returned in createWrapper
Diffstat (limited to 'ui')
-rw-r--r-- | ui/effects.core.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/effects.core.js b/ui/effects.core.js index d3e9e46cd..3fea647bd 100644 --- a/ui/effects.core.js +++ b/ui/effects.core.js @@ -53,8 +53,8 @@ $.extend($.effects, { wrapper.css({position: 'relative'}); el.css({position: 'relative'}); } else { - var top = parseInt(el.css('top'), 10); if(isNaN(top)) top = 'auto'; - var left = parseInt(el.css('left'), 10); if(isNaN(left)) left = 'auto'; + var top = el.css('top'); if(isNaN(parseInt(top))) top = 'auto'; + var left = el.css('left'); if(isNaN(parseInt(left))) left = 'auto'; wrapper.css({ position: el.css('position'), top: top, left: left, zIndex: el.css('z-index') }).show(); el.css({position: 'relative', top:0, left:0}); } |