Roo/dialog/UploadCropbox.js
authorleon <leon@roojs.com>
Thu, 21 Jul 2022 02:26:42 +0000 (10:26 +0800)
committerleon <leon@roojs.com>
Thu, 21 Jul 2022 02:26:42 +0000 (10:26 +0800)
Roo/dialog/UploadCropbox.js

index e7bcd2b..6df476a 100644 (file)
@@ -897,7 +897,7 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
                 }
                 // else {
                     context.fillStyle = 'white';
-                    context.fillRect(0, 0, canvas.width - 100, canvas.height);
+                    context.fillRect(0, 0, this.thumbEl.getWidth() / this.getScaleLevel(), this.thumbEl.getHeight() / this.getScaleLevel());
                 // }
 
                 context.drawImage(imageCanvas, sx, sy, width, height, x, y, width, height);