Roo/dialog/UploadCropbox.js
authorleon <leon@roojs.com>
Fri, 15 Jul 2022 07:31:34 +0000 (15:31 +0800)
committerleon <leon@roojs.com>
Fri, 15 Jul 2022 07:31:34 +0000 (15:31 +0800)
Roo/dialog/UploadCropbox.js

index caa12b5..2b27f01 100644 (file)
@@ -587,8 +587,10 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         var width = Math.ceil(this.imageEl.OriginWidth * this.getScaleLevel() / minScale);
         var height = Math.ceil(this.imageEl.OriginHeight * this.getScaleLevel() / minScale);
 
-        console.log("IMAGE WIDTH: " + this.thumbEl.getWidth() * this.getScaleLevel());
-        console.log("IMAGE HEIGHT: " + );
+        console.log("IMAGE WIDTH: " + width);
+        console.log("IMAGE HEIGHT: " + height);
+        console.log("WINDOW WIDTH: ");
+        console.log("WINDOW HEIGHT: ");
  
         var maxWidth = this.imageEl.OriginWidth;
         var maxHeight = this.imageEl.OriginHeight;