From b32ec31d896eb163c5f3d9b54ca9da3c0dd90ce0 Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Wed, 19 Dec 2007 18:23:46 +0000 Subject: [PATCH] Insure width/height do not return a negative number. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index ad938f2..33e109b 100644 --- a/src/core.js +++ b/src/core.js @@ -798,7 +798,7 @@ jQuery.extend({ else jQuery.swap( elem, props, getWH ); - return val; + return Math.max(0, val); } return jQuery.curCSS( elem, name, force ); -- 1.7.10.4