From: John Resig Date: Sun, 15 Jul 2007 02:42:11 +0000 (+0000) Subject: display block was being set on top/left animation, when they shouldn't be. X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=4577cd4b16b633a7015d02ff229898b58831dd18;hp=9e83f1b65fa34e97cfd86ba17514d014749360e8;p=jquery.git display block was being set on top/left animation, when they shouldn't be. --- diff --git a/src/fx/fx.js b/src/fx/fx.js index 4c38413..d44fd82 100644 --- a/src/fx/fx.js +++ b/src/fx/fx.js @@ -443,7 +443,10 @@ jQuery.extend({ jQuery.attr(y, "opacity", z.now); // Let attr handle opacity else { y[prop] = parseInt(z.now) + "px"; - y.display = "block"; // Set display property to block for animation + + // Set display property to block for height/width animations + if ( prop == "height" || prop == "width" ) + y.display = "block"; } };