From 7caca06cfc28fab22ec9c3a2d1363fec8d8c1951 Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 24 Aug 2006 23:45:39 +0000 Subject: [PATCH] Fixed the giant negative number issue that Opera was having. --- src/fx/fx.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fx/fx.js b/src/fx/fx.js index 3e8885dd4d..72bfbf83ab 100644 --- a/src/fx/fx.js +++ b/src/fx/fx.js @@ -415,7 +415,8 @@ jQuery.extend({ // Get the current size z.cur = function(){ - return parseFloat( jQuery.curCSS(z.el, prop) ) || z.max(); + var r = parseFloat( jQuery.curCSS(z.el, prop) ); + return r && r > -10000 ? r : z.max(); }; // Start an animation from one number to another