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

index 5c53212..ae92467 100644 (file)
@@ -932,6 +932,9 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
                 var sx = Math.min(this.canvasEl.width - this.thumbEl.getWidth(), this.thumbEl.getLeft(true) - this.previewEl.getLeft(true));
                 var sy = Math.min(this.canvasEl.height - this.thumbEl.getHeight(), this.thumbEl.getTop(true) - this.previewEl.getTop(true));
 
+                console.log("sx: " + sx);
+                console.log("sy: " + sy);
+
                 sx = sx < 0 ? 0 : (sx / this.getScaleLevel());
                 sy = sy < 0 ? 0 : (sy / this.getScaleLevel());