aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-02-17 01:07:30 +0000
committerScott González <scott.gonzalez@gmail.com>2009-02-17 01:07:30 +0000
commit49b76873ad4c46fe2c1636b0ad711b147b34e8b8 (patch)
tree32927cf1c5c18625b398c90b13869a557517e7f8
parenteb5858f69f0d8a73fc30b37958a6b63909b37b79 (diff)
downloadjquery-ui-49b76873ad4c46fe2c1636b0ad711b147b34e8b8.tar.gz
jquery-ui-49b76873ad4c46fe2c1636b0ad711b147b34e8b8.zip
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.
-rw-r--r--ui/effects.transfer.js8
1 files 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