Skip to content
Permalink
Browse files

display block was being set on top/left animation, when they shouldn'…

…t be.
  • Loading branch information
jeresig committed Jul 15, 2007
1 parent 9e83f1b commit 4577cd4b16b633a7015d02ff229898b58831dd18
Showing with 4 additions and 1 deletion.
  1. +4 −1 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";
}
};

0 comments on commit 4577cd4

Please sign in to comment.
You can’t perform that action at this time.