projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dd4e5ba
)
Roo/dialog/UploadCropbox.js
author
leon
<leon@roojs.com>
Fri, 15 Jul 2022 08:19:18 +0000
(16:19 +0800)
committer
leon
<leon@roojs.com>
Fri, 15 Jul 2022 08:19:18 +0000
(16:19 +0800)
Roo/dialog/UploadCropbox.js
patch
|
blob
|
history
diff --git
a/Roo/dialog/UploadCropbox.js
b/Roo/dialog/UploadCropbox.js
index
335dd6a
..
47db09a
100644
(file)
--- a/
Roo/dialog/UploadCropbox.js
+++ b/
Roo/dialog/UploadCropbox.js
@@
-589,8
+589,8
@@
Roo.extend(Roo.dialog.UploadCropbox, Roo.Component, {
console.log("IMAGE WIDTH: " + width);
console.log("IMAGE HEIGHT: " + height);
console.log("IMAGE WIDTH: " + width);
console.log("IMAGE HEIGHT: " + height);
- console.log("WINDOW WIDTH: " + this.thumbEl.getWidth() /
Math.pow(1.02, this.scale) / minScale
);
- console.log("WINDOW HEIGHT: " + this.thumbEl.getHeight() /
Math.pow(1.02, this.scale) / minScale
);
+ console.log("WINDOW WIDTH: " + this.thumbEl.getWidth() /
this.getScaleLevel()
);
+ console.log("WINDOW HEIGHT: " + this.thumbEl.getHeight() /
this.getScaleLevel()
);
var maxWidth = this.imageEl.OriginWidth;
var maxHeight = this.imageEl.OriginHeight;
var maxWidth = this.imageEl.OriginWidth;
var maxHeight = this.imageEl.OriginHeight;