projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7857355
)
Roo/bootstrap/UploadCropbox.js
author
edward
<edward@roojs.com>
Fri, 22 Jan 2016 07:29:03 +0000
(15:29 +0800)
committer
edward
<edward@roojs.com>
Fri, 22 Jan 2016 07:29:03 +0000
(15:29 +0800)
Roo/bootstrap/UploadCropbox.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/UploadCropbox.js
b/Roo/bootstrap/UploadCropbox.js
index
4831a1b
..
b004f22
100644
(file)
--- a/
Roo/bootstrap/UploadCropbox.js
+++ b/
Roo/bootstrap/UploadCropbox.js
@@
-461,15
+461,11
@@
Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component, {
}
- Roo.log([x, y]);
-
if(this.rotate == 180){
x = this.image.OriginWidth - this.thumb.getWidth() * Math.pow(1.1, this.scale * -1) - x;
y = this.image.OriginHeight - this.thumb.getHeight() * Math.pow(1.1, this.scale * -1) - y;
}
- Roo.log([x,y]);
-
context.translate(centerX, centerY);
context.rotate(this.rotate * Math.PI / 180);