Roo/bootstrap/UploadCropbox.js
authoredward <edward@roojs.com>
Mon, 22 Feb 2016 04:56:55 +0000 (12:56 +0800)
committeredward <edward@roojs.com>
Mon, 22 Feb 2016 04:56:55 +0000 (12:56 +0800)
Roo/bootstrap/UploadCropbox.js

index e35f8d7..7680f63 100644 (file)
@@ -443,7 +443,7 @@ Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component,  {
             return;
         }
         
-        var scale = ($zoom < 1) ? (this.scale - 1) : (this.scale + 1);
+        var scale = this.scale; // ($zoom < 1) ? (this.scale - 1) : (this.scale + 1);
         var width = Math.ceil(this.imageEl.OriginWidth * this.baseScale * Math.pow(1.1, scale));;
         var height = Math.ceil(this.imageEl.OriginHeight * this.baseScale * Math.pow(1.1, scale));
         var minScale = this.thumbEl.getWidth() / this.minWidth;