mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Transfer effect: Use innerWidth/Height instead of outerWidth/Height and then subtracting border. Fixed #4153 - Transfer throws 'Invalid Argument' in IE7 without CSS border property.
This commit is contained in:
parent
eb5858f69f
commit
49b76873ad
@ -31,8 +31,8 @@ $.effects.transfer = function(o) {
|
||||
transfer.css({
|
||||
top: position.top,
|
||||
left: position.left,
|
||||
height: el.outerHeight() - parseInt(transfer.css('borderTopWidth'),10) - parseInt(transfer.css('borderBottomWidth'),10),
|
||||
width: el.outerWidth() - parseInt(transfer.css('borderLeftWidth'),10) - parseInt(transfer.css('borderRightWidth'),10),
|
||||
height: el.innerHeight(),
|
||||
width: el.innerWidth(),
|
||||
position: 'absolute'
|
||||
});
|
||||
|
||||
@ -41,8 +41,8 @@ $.effects.transfer = function(o) {
|
||||
animation = {
|
||||
top: position.top,
|
||||
left: position.left,
|
||||
height: target.outerHeight() - parseInt(transfer.css('borderTopWidth'),10) - parseInt(transfer.css('borderBottomWidth'),10),
|
||||
width: target.outerWidth() - parseInt(transfer.css('borderLeftWidth'),10) - parseInt(transfer.css('borderRightWidth'),10)
|
||||
height: target.innerHeight(),
|
||||
width: target.innerWidth()
|
||||
};
|
||||
|
||||
// Animate
|
||||
|
Loading…
Reference in New Issue
Block a user