projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2410bd
)
Roo/bootstrap/UploadCropbox.js
author
edward
<edward@roojs.com>
Fri, 22 Jan 2016 07:46:53 +0000
(15:46 +0800)
committer
edward
<edward@roojs.com>
Fri, 22 Jan 2016 07:46:53 +0000
(15:46 +0800)
Roo/bootstrap/UploadCropbox.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/UploadCropbox.js
b/Roo/bootstrap/UploadCropbox.js
index
b0a630a
..
8fab8e8
100644
(file)
--- a/
Roo/bootstrap/UploadCropbox.js
+++ b/
Roo/bootstrap/UploadCropbox.js
@@
-491,7
+491,7
@@
Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component, {
canvas2.width = this.minWidth;
canvas2.height = this.minHeight;
- context2.drawImage(canvas,
Math.abs(this.minWidth - this.minHeight)
, 0, this.minWidth, this.minHeight, 0, 0, this.minWidth, this.minHeight);
+ context2.drawImage(canvas,
0
, 0, this.minWidth, this.minHeight, 0, 0, this.minWidth, this.minHeight);
this.cropImageData = canvas2.toDataURL(this.cropType);