r2084 - trunk/ui
r2084 - trunk/ui
Author: scott.gonzalez
Date: Mon Feb 16 17:07:30 2009
New Revision: 2084
Modified:
trunk/ui/effects.transfer.js
Log:
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.
Modified: trunk/ui/effects.transfer.js
==============================================================================
--- trunk/ui/effects.transfer.js (original)
+++ trunk/ui/effects.transfer.js Mon Feb 16 17:07:30 2009
@@ -31,8 +31,8 @@
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 @@
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