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

index bf77053..5416b90 100644 (file)
@@ -258,7 +258,7 @@ Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component,  {
             bgX = minX;
         }
         
-        if(thumbEndX > bgX + 1){
+        if(maxX > bgX){
             bgX = thumbEndX - parseInt(this.image.dom.width) * this.ratio;
         }