roojs-core.js
[roojs1] / roojs-ui-debug.js
index 1a14f42..4412a6d 100644 (file)
@@ -44601,8 +44601,14 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
                     var scale = this.outputMaxWidth / canvas.width;
                     canvas.width = canvas.width * scale;
                     canvas.height = canvas.height * scale;
+                    context.fillStyle = 'white';
+                    context.fillRect(0, 0, canvas.width, canvas.height);
                     context.scale(scale, scale);
                 }
+                else {
+                    context.fillStyle = 'white';
+                    context.fillRect(0, 0, canvas.width, canvas.height);
+                }
 
                 context.drawImage(imageCanvas, sx, sy, width, height, x, y, width, height);