roojs-core.js
[roojs1] / roojs-ui-debug.js
index 7ebf06f..342069e 100644 (file)
@@ -44747,9 +44747,12 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         }
 
         if(this.imageEl.OriginWidth < this.minWidth ) {
+            width = this.thumbEl.getWidth();
             this.baseScale = width / this.minWidth;
         }
 
+        console.log(this.imageEl.OriginHeight);
+        console.log(this.minHeight);
         if(this.imageEl.OriginHeight < this.minHeight) {
             console.log("HEIGHT");
             this.baseScale = height / this.minHeight;