projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
roojs-core.js
[roojs1]
/
roojs-debug.js
diff --git
a/roojs-debug.js
b/roojs-debug.js
index
807e201
..
7fa8285
100644
(file)
--- a/
roojs-debug.js
+++ b/
roojs-debug.js
@@
-68493,6
+68493,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;
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);
if(this.fireEvent('loadcanvas', this, this.imageEl) != false){
this.bodyEl.un('click', this.beforeSelectFile, this);
@@
-68679,7
+68691,7
@@
Roo.extend(Roo.dialog.UploadCropbox, Roo.Component, {
!this.isDocument &&
(this.rotate == 0 || this.rotate == 180) &&
(
!this.isDocument &&
(this.rotate == 0 || this.rotate == 180) &&
(
- width < this.minWidth ||
// zoom out
+ width < this.minWidth ||
height < this.minHeight ||
width > maxWidth ||
height > maxHeight
height < this.minHeight ||
width > maxWidth ||
height > maxHeight