Roo/bootstrap/UploadCropbox.js
authoredward <edward@roojs.com>
Tue, 19 Jan 2016 07:31:29 +0000 (15:31 +0800)
committeredward <edward@roojs.com>
Tue, 19 Jan 2016 07:31:29 +0000 (15:31 +0800)
Roo/bootstrap/UploadCropbox.js

index b7d86f4..c249ba9 100644 (file)
@@ -203,8 +203,8 @@ Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component,  {
         var pw = (this.imageSection.getWidth(true) - w) / 2;
         var ph = (this.imageSection.getHeight(true) - h) / 2;
         
-        this.image.setLeft(pw);
-        this.image.setTop(ph);
+        this.imageCanvas.setLeft(pw);
+        this.imageCanvas.setTop(ph);
     },
 //    
 //    onMouseDown : function(e)