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:
Scott González 2009-02-17 01:07:30 +00:00
parent eb5858f69f
commit 49b76873ad

View File

@ -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