projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9db5d8d
)
Roo/dialog/UploadCropbox.js
author
leon
<leon@roojs.com>
Tue, 9 Aug 2022 06:49:24 +0000
(14:49 +0800)
committer
leon
<leon@roojs.com>
Tue, 9 Aug 2022 06:49:24 +0000
(14:49 +0800)
Roo/dialog/UploadCropbox.js
patch
|
blob
|
history
diff --git
a/Roo/dialog/UploadCropbox.js
b/Roo/dialog/UploadCropbox.js
index
27ee8cb
..
847afce
100644
(file)
--- a/
Roo/dialog/UploadCropbox.js
+++ b/
Roo/dialog/UploadCropbox.js
@@
-485,7
+485,7
@@
Roo.extend(Roo.dialog.UploadCropbox, Roo.Component, {
var pw = Math.ceil((this.bodyEl.getWidth() - this.canvasEl.width) / 2);
var ph = Math.ceil((this.bodyEl.getHeight() - this.canvasEl.height) / 2);
- if(!center) {
+ if(!center
&& typeof this.startScale !== 'undefined' && this.scale > this.startScale
) {
var old_pw = this.previewEl.getLeft(true);
var old_ph = Math.ceil(this.previewEl.getTop(true));