Roo/dialog/UploadCropbox.js
authorleon <leon@roojs.com>
Tue, 12 Jul 2022 03:26:16 +0000 (11:26 +0800)
committerleon <leon@roojs.com>
Tue, 12 Jul 2022 03:26:16 +0000 (11:26 +0800)
Roo/dialog/UploadCropbox.js

index f471da9..71aa714 100644 (file)
@@ -581,8 +581,8 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         var height = Math.ceil(this.imageEl.OriginHeight * this.getScaleLevel() / minScale);
 
         console.log("ZOOM");
-        console.log("WIDTH: " + width);
-        console.log("HEIGHT: " + height);
+        console.log("WIDTH: " + (this.thumbEl.getWidth() / this.getScaleLevel()));
+        console.log("HEIGHT: " + (this.thumEl.getHeight() / this.getScaleLevel()));
 
 
         var maxWidth = this.imageEl.OriginWidth;