X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcss.js;h=8a83c6072bd409b0dc65c7f17ff3cebf1afa9f7b;hb=69497c3fd7ff560be0e47b4c65076915cca756bc;hp=369485e4768e54cd7dcc28148d7c19e11d64aad9;hpb=3394d32ea75cffb8c8c386d607823cae878b9145;p=jquery.git diff --git a/src/css.js b/src/css.js index 369485e..8a83c60 100644 --- a/src/css.js +++ b/src/css.js @@ -179,7 +179,7 @@ jQuery.each(["height", "width"], function( i, name ) { if ( val != null ) { // Should return "auto" instead of 0, use 0 for // temporary backwards-compat - return val === "" ? "0px" : val; + return val === "" || val === "auto" ? "0px" : val; } } @@ -188,7 +188,7 @@ jQuery.each(["height", "width"], function( i, name ) { // Should return "auto" instead of 0, use 0 for // temporary backwards-compat - return val === "" ? "0px" : val; + return val === "" || val === "auto" ? "0px" : val; } return typeof val === "string" ? val : val + "px";