projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0b44939
)
Roo/dialog/UploadCropbox.js
author
leon
<leon@roojs.com>
Wed, 20 Jul 2022 08:58:47 +0000
(16:58 +0800)
committer
leon
<leon@roojs.com>
Wed, 20 Jul 2022 08:58:47 +0000
(16:58 +0800)
Roo/dialog/UploadCropbox.js
patch
|
blob
|
history
diff --git
a/Roo/dialog/UploadCropbox.js
b/Roo/dialog/UploadCropbox.js
index
4ca9d8d
..
f972545
100644
(file)
--- a/
Roo/dialog/UploadCropbox.js
+++ b/
Roo/dialog/UploadCropbox.js
@@
-887,17
+887,15
@@
Roo.extend(Roo.dialog.UploadCropbox, Roo.Component, {
sx = sx < 0 ? 0 : (sx / this.getScaleLevel());
sy = sy < 0 ? 0 : (sy / this.getScaleLevel());
sx = sx < 0 ? 0 : (sx / this.getScaleLevel());
sy = sy < 0 ? 0 : (sy / this.getScaleLevel());
- if(canvas.width > this.outputMaxWidth) {
- var scale = this.outputMaxWidth / canvas.width;
- canvas.width = canvas.width * scale;
- canvas.height = canvas.height * scale;
- context.scale(scale, scale);
- }
-
context.fillStyle = 'white';
context.fillRect(0, 0, canvas.width, canvas.height);
context.fillStyle = 'white';
context.fillRect(0, 0, canvas.width, canvas.height);
- console.log(context);
+ // if(canvas.width > this.outputMaxWidth) {
+ // var scale = this.outputMaxWidth / canvas.width;
+ // canvas.width = canvas.width * scale;
+ // canvas.height = canvas.height * scale;
+ // context.scale(scale, scale);
+ // }
context.drawImage(imageCanvas, sx, sy, width, height, x, y, width, height);
context.drawImage(imageCanvas, sx, sy, width, height, x, y, width, height);