projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
281f26f
)
Roo/bootstrap/UploadCropbox.js
author
edward
<edward@roojs.com>
Thu, 3 Mar 2016 03:44:13 +0000
(11:44 +0800)
committer
edward
<edward@roojs.com>
Thu, 3 Mar 2016 03:44:13 +0000
(11:44 +0800)
Roo/bootstrap/UploadCropbox.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/UploadCropbox.js
b/Roo/bootstrap/UploadCropbox.js
index
6161f64
..
20095f0
100644
(file)
--- a/
Roo/bootstrap/UploadCropbox.js
+++ b/
Roo/bootstrap/UploadCropbox.js
@@
-451,6
+451,10
@@
Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component, {
{
var minScale = this.thumbEl.getWidth() / this.minWidth;
+ if(this.isDocument && this.rotate == 90){
+ minScale = this.thumbEl.getHeight() / this.minHeight;
+ }
+
var width = Math.ceil(this.imageEl.OriginWidth * this.getScaleLevel() / minScale);
var height = Math.ceil(this.imageEl.OriginHeight * this.getScaleLevel() / minScale);