Roo/dialog/UploadCropbox.js
[roojs1] / Roo / dialog / UploadCropbox.js
index 8284d3f..0bf66e0 100644 (file)
@@ -894,10 +894,12 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
                     context.scale(scale, scale);
                 }
 
-                context.filLStyle = 'blue';
-                context.fillRect(10, 10, 100, 100);
+                context.filLStyle = '#FF0000';
+                console.log(canvas.width);
+                console.log(canvas.height);
+                context.fillRect(0, 0, canvas.width, canvas.height);
 
-                // 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 :