Skip to content
Permalink
Browse files

Need to also handle the case where 'auto' is being returned, as in Fi…

…refox. Follow-up to #7395.
  • Loading branch information...
jeresig committed Nov 10, 2010
1 parent 3394d32 commit efaf375e56920c9699c3d4ef09fb9171352aa8bb
Showing with 2 additions and 2 deletions.
  1. +2 −2 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";

0 comments on commit efaf375

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