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

index b192dc9..85b1d5c 100644 (file)
@@ -444,9 +444,9 @@ Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component,  {
         }
         
         var 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;
+        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));
         
         Roo.log([width, height, minScale]);
         Roo.log(width / minScale);