Roo/dialog/UploadCropbox.js
authorleon <leon@roojs.com>
Mon, 11 Jul 2022 07:25:20 +0000 (15:25 +0800)
committerleon <leon@roojs.com>
Mon, 11 Jul 2022 07:25:20 +0000 (15:25 +0800)
Roo/dialog/UploadCropbox.js

index ebebd24..d2106cf 100644 (file)
@@ -891,6 +891,9 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
                 
                 var width = (this.thumbEl.getWidth() / this.getScaleLevel() > this.imageEl.OriginWidth) ? this.imageEl.OriginWidth : (this.thumbEl.getWidth() / this.getScaleLevel());
                 var height = (this.thumbEl.getHeight() / this.getScaleLevel() > this.imageEl.OriginHeight) ? this.imageEl.OriginHeight : (this.thumbEl.getHeight() / this.getScaleLevel());
+
+                console.log("WIDTH: " + width);
+                console.log("HEIGHT: " + height);
                 
                 var x = (this.thumbEl.getLeft(true) > this.previewEl.getLeft(true)) ? 0 : ((this.previewEl.getLeft(true) - this.thumbEl.getLeft(true)) / this.getScaleLevel());
                 var y = (this.thumbEl.getTop(true) > this.previewEl.getTop(true)) ? 0 : ((this.previewEl.getTop(true) - this.thumbEl.getTop(true)) / this.getScaleLevel());