Roo/dialog/UploadCropbox.js
authorleon <leon@roojs.com>
Wed, 10 Aug 2022 03:10:16 +0000 (11:10 +0800)
committerleon <leon@roojs.com>
Wed, 10 Aug 2022 03:10:16 +0000 (11:10 +0800)
Roo/dialog/UploadCropbox.js

index 3176abf..11378b4 100644 (file)
@@ -666,7 +666,7 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         Roo.log("old canvas width: " + this.canvasEl.width);
         Roo.log("old canvas height: " + this.canvasEl.height);
 
-        Roo.log("scale level: " + (newCanvasHeight * this.minWidth / this.minHeight - newCanvasWidth));
+        Roo.log("scale level: " + (newCanvasHeight * this.minWidth / this.minHeight - newCanvasWidth) / 2);
         Roo.log("new canvas width: " + newCanvasWidth);
         Roo.log("new canvas height: " + newCanvasHeight);