From: leon Date: Fri, 15 Jul 2022 08:15:54 +0000 (+0800) Subject: Roo/dialog/UploadCropbox.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=dd4e5baf82b67d29ca8102f4184958e2e799d442 Roo/dialog/UploadCropbox.js --- diff --git a/Roo/dialog/UploadCropbox.js b/Roo/dialog/UploadCropbox.js index b26089857b..335dd6a65a 100644 --- a/Roo/dialog/UploadCropbox.js +++ b/Roo/dialog/UploadCropbox.js @@ -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: " + this.thumbEl.getWidth() / this.baseScale * this.getScaleLevel() / minScale ); - console.log("WINDOW HEIGHT: " + this.thumbEl.getHeight() / this.baseScale * this.getScaleLevel() / minScale); + 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); var maxWidth = this.imageEl.OriginWidth; var maxHeight = this.imageEl.OriginHeight;