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-ui-debug.js
diff --git
a/roojs-ui-debug.js
b/roojs-ui-debug.js
index
342069e
..
f790562
100644
(file)
--- a/
roojs-ui-debug.js
+++ b/
roojs-ui-debug.js
@@
-44746,18
+44746,10
@@
Roo.extend(Roo.dialog.UploadCropbox, Roo.Component, {
}
}
- if(this.imageEl.OriginWidth < this.minWidth ) {
- width = this.thumbEl.getWidth();
+ if(this.imageEl.OriginWidth < this.minWidth || this.imageEl.OriginHeight < this.minHeight) {
this.baseScale = width / this.minWidth;
}
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;
- }
-
+ console.log(this.baseScale);
return;
},
return;
},