Roo/bootstrap/UploadCropbox.js
authoredward <edward@roojs.com>
Mon, 22 Feb 2016 06:08:04 +0000 (14:08 +0800)
committeredward <edward@roojs.com>
Mon, 22 Feb 2016 06:08:04 +0000 (14:08 +0800)
Roo/bootstrap/UploadCropbox.js

index a64ae7a..d88af3c 100644 (file)
@@ -506,7 +506,7 @@ Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component,  {
                 
                 if(
                         this.imageEl.OriginWidth * this.getScaleLevel() < this.thumbEl.getHeight() ||
-                        this.imageEl.OriginWidth * this.getScaleLevel() < this.thumbEl.getHeight()
+                        this.imageEl.OriginWidth * this.getScaleLevel() < this.thumbEl.getWidth()
                 ){
                     
                 }