projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dea309
)
Roo/bootstrap/UploadCropbox.js
author
edward
<edward@roojs.com>
Mon, 22 Feb 2016 04:56:55 +0000
(12:56 +0800)
committer
edward
<edward@roojs.com>
Mon, 22 Feb 2016 04:56:55 +0000
(12:56 +0800)
Roo/bootstrap/UploadCropbox.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/UploadCropbox.js
b/Roo/bootstrap/UploadCropbox.js
index
e35f8d7
..
7680f63
100644
(file)
--- a/
Roo/bootstrap/UploadCropbox.js
+++ b/
Roo/bootstrap/UploadCropbox.js
@@
-443,7
+443,7
@@
Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component, {
return;
}
- var scale = ($zoom < 1) ? (this.scale - 1) : (this.scale + 1);
+ var scale =
this.scale; //
($zoom < 1) ? (this.scale - 1) : (this.scale + 1);
var width = Math.ceil(this.imageEl.OriginWidth * this.baseScale * Math.pow(1.1, scale));;
var height = Math.ceil(this.imageEl.OriginHeight * this.baseScale * Math.pow(1.1, scale));
var minScale = this.thumbEl.getWidth() / this.minWidth;