-
- var _this = this;
-
- var errorMsg = "";
-
- if(this.imageEl.OriginWidth < this.minWidth) {
- errorMsg = "Image width should be at least " + this.minWidth + "\n";
- }
-
- if(this.imageEl.OriginHeight < this.minHeight) {
- errorMsg = "Image height should be at least " + this.minHeight + "\n";
- }
-
- if(errorMsg.length != '') {
- Roo.Msg.show({
- title: 'Error',
- msg: errorMsg,
- buttons: {ok : true},
- fn: function(res) {
- _this.selectorEl.dom.value = '';
- _this.selectorEl.dom.click();
- }
- });
- }
-