Commit 4577cd4b authored by John Resig's avatar John Resig

display block was being set on top/left animation, when they shouldn't be.

parent 9e83f1b6
......@@ -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";
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment