roojs-core.js
[roojs1] / roojs-ui-debug.js
index 66c9476..80b2b60 100644 (file)
@@ -44001,6 +44001,18 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         this.imageEl.OriginWidth = this.imageEl.naturalWidth || this.imageEl.width;
         this.imageEl.OriginHeight = this.imageEl.naturalHeight || this.imageEl.height;
 
+        if(this.imageEl.OriginWidth < this.minWidth) {
+            Roo.Msg.show({
+                title: 'Error',
+                msg: "Image width should be at least 720",
+                buttons: {ok : true},
+                fn: function(res) {
+                    console.log("A");
+                    console.log(res);
+                }
+            });
+        }
+
         if(this.fireEvent('loadcanvas', this, this.imageEl) != false){
         
             this.bodyEl.un('click', this.beforeSelectFile, this);
@@ -44187,7 +44199,7 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
                 !this.isDocument &&
                 (this.rotate == 0 || this.rotate == 180) && 
                 (
-                    width < this.minWidth || // zoom out
+                    width < this.minWidth ||
                     height < this.minHeight ||
                     width > maxWidth ||
                     height > maxHeight