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
4412a6d
..
76f9a1e
100644
(file)
--- a/
roojs-ui-debug.js
+++ b/
roojs-ui-debug.js
@@
-44602,13
+44602,13
@@
Roo.extend(Roo.dialog.UploadCropbox, Roo.Component, {
canvas.width = canvas.width * scale;
canvas.height = canvas.height * scale;
context.fillStyle = 'white';
canvas.width = canvas.width * scale;
canvas.height = canvas.height * scale;
context.fillStyle = 'white';
- context.fillRect(0, 0, canvas.width, canvas.height);
+ context.fillRect(0, 0, canvas.width
- 100
, canvas.height);
context.scale(scale, scale);
}
context.scale(scale, scale);
}
- else {
-
context.fillStyle = 'white';
-
context.fillRect(0, 0, canvas.width, canvas.height
);
- }
+
+ context.fillStyle = 'white';
+
context.fillRect(0, 0, this.thumbEl.getWidth() / this.getScaleLevel(), this.thumbEl.getHeight() / this.getScaleLevel()
);
+
context.drawImage(imageCanvas, sx, sy, width, height, x, y, width, height);
context.drawImage(imageCanvas, sx, sy, width, height, x, y, width, height);