From 49b76873ad4c46fe2c1636b0ad711b147b34e8b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 17 Feb 2009 01:07:30 +0000 Subject: [PATCH] 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. --- ui/effects.transfer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/effects.transfer.js b/ui/effects.transfer.js index 09142bdad..8a627a96b 100644 --- a/ui/effects.transfer.js +++ b/ui/effects.transfer.js @@ -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 -- 2.39.5