remove debugging code
[roojs1] / Roo / Resizable.js
index 9bbb7b0..b0fb9f3 100644 (file)
@@ -346,7 +346,9 @@ Roo.extend(Roo.Resizable, Roo.util.Observable, {
 
     // private
     snap : function(value, inc, min){
-        if(!inc || !value) return value;
+        if(!inc || !value) {
+            return value;
+        }
         var newValue = value;
         var m = value % inc;
         if(m > 0){
@@ -506,7 +508,7 @@ Roo.extend(Roo.Resizable, Roo.util.Observable, {
                     case "southeast":
                     case "east":
                         h = oh * (w/ow);
-                        h = Math.max(Math.max(mh, h), mxh);
+                        h = Math.min(Math.max(mh, h), mxh);
                         w = ow * (h/oh);
                        break;
                     case "south":
@@ -665,6 +667,7 @@ Roo.Resizable.Handle = function(rz, pos, disableTrackOver, transparent){
 // private
 Roo.Resizable.Handle.prototype = {
     afterResize : function(rz){
+        Roo.log('after?');
         // do nothing
     },
     // private