Limit the scope of the CSS 'auto' change to just height/width. Fixes #7393.
This commit is contained in:
parent
335e0a33e1
commit
d9478954b9
2 changed files with 7 additions and 3 deletions
|
@ -177,7 +177,7 @@ jQuery.each(["height", "width"], function( i, name ) {
|
|||
}
|
||||
|
||||
if ( val != null ) {
|
||||
return val;
|
||||
return val === "" ? "auto" : val;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -252,7 +252,7 @@ if ( document.defaultView && document.defaultView.getComputedStyle ) {
|
|||
}
|
||||
}
|
||||
|
||||
return ret === "" ? "auto" : ret;
|
||||
return ret;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue