projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e65966
)
Roo/bootstrap/UploadCropbox.js
author
edward
<edward@roojs.com>
Thu, 4 Feb 2016 02:31:32 +0000
(10:31 +0800)
committer
edward
<edward@roojs.com>
Thu, 4 Feb 2016 02:31:32 +0000
(10:31 +0800)
Roo/bootstrap/UploadCropbox.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/UploadCropbox.js
b/Roo/bootstrap/UploadCropbox.js
index
589abf2
..
b8afa3d
100644
(file)
--- a/
Roo/bootstrap/UploadCropbox.js
+++ b/
Roo/bootstrap/UploadCropbox.js
@@
-298,7
+298,7
@@
Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component, {
this.previewEl.appendChild(this.canvasEl);
- this.
fit
ThumbBox();
+ this.
canvasFitTo
ThumbBox();
return;
@@
-677,7
+677,7
@@
Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component, {
},
-
fit
ThumbBox : function()
+
canvasFitTo
ThumbBox : function()
{
var width = this.thumb.getWidth();
var height = this.image.OriginHeight * width / this.image.OriginWidth;