Roo/dialog/UploadCropbox.js
[roojs1] / Roo / dialog / UploadCropbox.js
index 335dd6a..211513a 100644 (file)
@@ -587,10 +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: " + width);
-        console.log("IMAGE HEIGHT: " + height);
-        console.log("WINDOW WIDTH: " + this.thumbEl.getWidth() / Math.pow(1.02, this.scale) / minScale );
-        console.log("WINDOW HEIGHT: " + this.thumbEl.getHeight() / Math.pow(1.02, this.scale) / minScale);
+        // console.log("IMAGE WIDTH: " + width);
+        // console.log("IMAGE HEIGHT: " + height);
+        console.log("WINDOW WIDTH: " + this.thumbEl.getWidth() / this.getScaleLevel());
+        console.log("WINDOW HEIGHT: " + this.thumbEl.getHeight() / this.getScaleLevel());
  
         var maxWidth = this.imageEl.OriginWidth;
         var maxHeight = this.imageEl.OriginHeight;