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

index b4e3516..e1aea71 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.imageCanvas.setTop(pw);
-        this.imageCanvas.setLeft(ph);
+        this.image.setTop(pw);
+        this.image.setLeft(ph);
     },
 //    
 //    onMouseDown : function(e)