Roo/dialog/UploadCropbox.js
[roojs1] / Roo / dialog / UploadCropbox.js
index 33b41d7..b082683 100644 (file)
@@ -887,7 +887,7 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
                 sx = sx < 0 ? 0 : (sx / this.getScaleLevel());
                 sy = sy < 0 ? 0 : (sy / this.getScaleLevel());
 
-                context.filLStyle = '#FF0000';
+                context.fillStyle = 'white';
                 console.log(canvas.width);
                 console.log(canvas.height);
                 context.fillRect(0, 0, canvas.width, canvas.height);
@@ -899,7 +899,7 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
                     context.scale(scale, scale);
                 }
 
-                context.drawImage(imageCanvas, sx, sy, width, height, x, y, width, height);
+                // context.drawImage(imageCanvas, sx, sy, width, height, x, y, width, height);
                 
                 break;
             case 90 :