Roo/Resizable.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 24 Sep 2010 06:24:48 +0000 (14:24 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 24 Sep 2010 06:24:48 +0000 (14:24 +0800)
Roo/Resizable.js

index b13fadd..2ae3ed0 100644 (file)
@@ -419,7 +419,7 @@ Roo.extend(Roo.Resizable, Roo.util.Observable, {
                     h -= diffY;
                     break;
                 case "hdrag":
-                    diffX = this.constrain(w, diffX, mw+diffX, mxw);
+                    diffX = this.constrain(w, diffX, mw-diffX, mxw);
                     x += diffX;
                     w -= diffX;
                     break;