roojs-core.js
[roojs1] / Roo / dialog / UploadCropbox.js
index 77e24ee..7bc78e3 100644 (file)
@@ -894,10 +894,11 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
                     context.scale(scale, scale);
                 }
 
-                context.filLStyle = '#FF0000';
-                context.fillRect(10, 10, 100, 100);
+                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);
+
+                context.drawImage(imageCanvas, sx, sy, width, height, x, y, width, height);
                 
                 break;
             case 90 :