Roo/bootstrap/UploadCropbox.js
authoredward <edward@roojs.com>
Tue, 19 Jan 2016 08:13:30 +0000 (16:13 +0800)
committeredward <edward@roojs.com>
Tue, 19 Jan 2016 08:13:30 +0000 (16:13 +0800)
Roo/bootstrap/UploadCropbox.js

index b710d82..2dedc16 100644 (file)
@@ -204,8 +204,8 @@ Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component,  {
     
     setCanvasPosition : function()
     {
-        var w =  this.image.getWidth() * this.ratio;
-        var h =  this.image.getHeight() * this.ratio;
+        var w =  this.image.getWidth();
+        var h =  this.image.getHeight();
 
         this.image.setWidth(w);
         this.image.setHeight(h);