mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
effects.core: fixed parsing of IE left/top values in createWrapper (closes #2915)
This commit is contained in:
parent
074bd8d1ab
commit
b391290844
@ -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});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user