Roo/dialog/UploadCropbox.js
[roojs1] / Roo / dialog / UploadCropbox.js
index f471da9..6271d21 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.thumbEl.getHeight() / this.getScaleLevel()));
 
 
         var maxWidth = this.imageEl.OriginWidth;
@@ -880,7 +880,7 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         console.log("CANVAS WIDTH: " + canvas.width);
         console.log("CANVAS HEIGHT: " + canvas.height);
 
-        console.log("GETSCALELEVLE: " + this.getScaleLevel());
+        console.log("SCALELEVLE: " + scaleLevel);
 
         switch (this.rotate) {
             case 0 :