roojs-core.js
[roojs1] / Roo / dialog / UploadCropbox.js
index f4a5674..7bc78e3 100644 (file)
@@ -894,8 +894,9 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
                     context.scale(scale, scale);
                 }
 
-                context.filLStyle = 'green'
-                context.fillRect(0, 0, canvas.width, canvas.height);
+                context.fillStyle = 'white';
+                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);