From: Brandon Aaron Date: Wed, 19 Dec 2007 18:23:46 +0000 (+0000) Subject: Insure width/height do not return a negative number. X-Git-Tag: 1.2.2b2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b32ec31d896eb163c5f3d9b54ca9da3c0dd90ce0;p=jquery.git Insure width/height do not return a negative number. --- diff --git a/src/core.js b/src/core.js index ad938f2b5..33e109b92 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 );