aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-05-25 15:50:29 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-05-25 15:50:29 +0000
commitb39129084414aa2caa688ad9d01465d6287f93dd (patch)
tree2d013ed77e63642ad97edd16e00d277cbeca8212 /ui
parent074bd8d1ab4063351bb6d51be4318a486b04cf5c (diff)
downloadjquery-ui-b39129084414aa2caa688ad9d01465d6287f93dd.tar.gz
jquery-ui-b39129084414aa2caa688ad9d01465d6287f93dd.zip
effects.core: fixed parsing of IE left/top values in createWrapper (closes #2915)
Diffstat (limited to 'ui')
-rw-r--r--ui/source/effects.core.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/source/effects.core.js b/ui/source/effects.core.js
index 8841cf59b..b44a72274 100644
--- a/ui/source/effects.core.js
+++ b/ui/source/effects.core.js
@@ -44,8 +44,8 @@
wrapper.css({position: 'relative'});
el.css({position: 'relative'});
} else {
- var top = parseInt(el.css('top'), 10); if (top.constructor != Number) top = 'auto';
- var left = parseInt(el.css('left'), 10); if (left.constructor != Number) left = 'auto';
+ var top = parseInt(el.css('top'), 10); if(isNaN(top)) top = 'auto';
+ var left = parseInt(el.css('left'), 10); if(isNaN(top)) 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});
}