Roo/bootstrap/UploadCropbox.js
authoredward <edward@roojs.com>
Fri, 22 Jan 2016 07:10:10 +0000 (15:10 +0800)
committeredward <edward@roojs.com>
Fri, 22 Jan 2016 07:10:10 +0000 (15:10 +0800)
Roo/bootstrap/UploadCropbox.js

index 389bc74..ea4cc52 100644 (file)
@@ -437,7 +437,7 @@ Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component,  {
             context.translate(centerX, centerY);
 
 //            context.rotate(this.rotate * Math.PI / 180);
-            context.drawImage(this.image.dom, x, y, cropWidth, cropHeight, centerX * -1, centerY * -1, canvas.width, canvas.height);
+            context.drawImage(this.image.dom, x, y, cropWidth, cropHeight, centerX * -1, centerY * -1, this.minHeight, this.minWidth);
         
             this.cropImageData = canvas.toDataURL(this.cropType);