Roo/dialog/UploadCropbox.js
authorleon <leon@roojs.com>
Fri, 15 Jul 2022 08:12:56 +0000 (16:12 +0800)
committerleon <leon@roojs.com>
Fri, 15 Jul 2022 08:12:56 +0000 (16:12 +0800)
Roo/dialog/UploadCropbox.js

index b4e9bdd..b260898 100644 (file)
@@ -589,8 +589,8 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
 
         console.log("IMAGE WIDTH: " + width);
         console.log("IMAGE HEIGHT: " + height);
-        console.log("WINDOW WIDTH: ");
-        console.log("WINDOW HEIGHT: ");
+        console.log("WINDOW WIDTH: " + this.thumbEl.getWidth() / this.baseScale * this.getScaleLevel() / minScale );
+        console.log("WINDOW HEIGHT: " + this.thumbEl.getHeight() / this.baseScale * this.getScaleLevel() / minScale);
  
         var maxWidth = this.imageEl.OriginWidth;
         var maxHeight = this.imageEl.OriginHeight;