Roo/bootstrap/UploadCropbox.js
authoredward <edward@roojs.com>
Mon, 22 Feb 2016 05:57:33 +0000 (13:57 +0800)
committeredward <edward@roojs.com>
Mon, 22 Feb 2016 05:57:33 +0000 (13:57 +0800)
Roo/bootstrap/UploadCropbox.js

index 6e9213f..6457e02 100644 (file)
@@ -489,16 +489,17 @@ Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component,  {
     {
         var minScale = this.thumbEl.getWidth() / this.minWidth;
         
-        Roo.log(minScale);
-        
-        
-        
-        
         if(
                 (this.rotate == 0 || this.rotate == 180) && 
                 (this.canvasEl.height < this.thumbEl.getWidth() || this.canvasEl.width < this.thumbEl.getHeight())
         ){
             
+            this.startScale = this.scale;
+            
+            while (scale < minScale){
+                
+            }
+            
             return false;
         }