aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/css.js b/src/css.js
index 88c4ffa05..30cecf39d 100644
--- a/src/css.js
+++ b/src/css.js
@@ -169,15 +169,11 @@ jQuery.each(["height", "width"], function( i, name ) {
});
}
- if ( val < 0 ) {
- return elem.style[ name ] || "0px";
- }
-
- if ( val === 0 ) {
+ if ( val <= 0 ) {
val = curCSS( elem, name, name );
if ( val != null ) {
- return val;
+ return val === "auto" ? "" : val;
}
}