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

index 9b8e11c..cfe5457 100644 (file)
@@ -673,7 +673,7 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
 
 
         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;
+        var padding_bottom = this.thumbEl.getTop(true) + this.thumbEl.getHeight() - new_canvas_height - new_preview_top;
 
         console.log("padding right: " + padding_right);
         console.log("padding bottom: " + padding_bottom);