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

index 77d93d4..3176abf 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));
         Roo.log("new canvas width: " + newCanvasWidth);
         Roo.log("new canvas height: " + newCanvasHeight);