Roo/dialog/UploadCropbox.js
authorleon <leon@roojs.com>
Tue, 9 Aug 2022 09:27:59 +0000 (17:27 +0800)
committerleon <leon@roojs.com>
Tue, 9 Aug 2022 09:27:59 +0000 (17:27 +0800)
Roo/dialog/UploadCropbox.js

index 6537980..9b8e11c 100644 (file)
@@ -672,8 +672,8 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         console.log("max padding top: " + max_padding_top);
 
 
-        var padding_right = this.thumbEl.getLeft(true) + this.thumbEl.getWidth() - new_preview_width - new_preview_left;
-        var padding_bottom = this.thumEl.getTop(true) + this.thumbEl.getHeight() - new_preview_height - new_preview_top;
+        var padding_right = this.thumbEl.getLeft(true) + this.thumbEl.getWidth() - new_canvas_width - new_preview_left;
+        var padding_bottom = this.thumEl.getTop(true) + this.thumbEl.getHeight() - new_canvas_height - new_preview_top;
 
         console.log("padding right: " + padding_right);
         console.log("padding bottom: " + padding_bottom);