]> source.dussan.org Git - jquery-ui.git/commitdiff
Transfer effect: Use innerWidth/Height instead of outerWidth/Height and then subtract...
authorScott González <scott.gonzalez@gmail.com>
Tue, 17 Feb 2009 01:07:30 +0000 (01:07 +0000)
committerScott González <scott.gonzalez@gmail.com>
Tue, 17 Feb 2009 01:07:30 +0000 (01:07 +0000)
ui/effects.transfer.js

index 09142bdad72f9680f429a4935c6570e3779cece7..8a627a96b4131aa4bf7dafb1fdbf16ade953ff72 100644 (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