X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fdialog%2FUploadCropbox.js;h=f55885d08b20f414e26db606d3af7203b0864040;hb=ab80ba4576bf04330ffb6b7d0266e01f070d3bb2;hp=f4ef506f4a1c570d5f1f96e780872aa83bbffd5c;hpb=1e46628ebb29258b1c8222c050dfd7c375635bb2;p=roojs1 diff --git a/Roo/dialog/UploadCropbox.js b/Roo/dialog/UploadCropbox.js index f4ef506f4a..f55885d08b 100644 --- a/Roo/dialog/UploadCropbox.js +++ b/Roo/dialog/UploadCropbox.js @@ -891,11 +891,14 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component, { var scale = this.outputMaxWidth / canvas.width; canvas.width = canvas.width * scale; canvas.height = canvas.height * scale; - console.log("fillrectt"); 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);