Skip to content

Commit

Permalink
v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanziyang committed Apr 6, 2018
1 parent d9cf380 commit 29ad64a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion dist/vue-croppa.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* vue-croppa v1.3.1
* vue-croppa v1.3.2
* https://github.com/zhanziyang/vue-croppa
*
* Copyright (c) 2018 zhanziyang
Expand Down Expand Up @@ -1319,11 +1319,13 @@ var component = { render: function render() {
this.imgData.height = imgHeight / scaleRatio;
this.imgData.width = this.outputWidth;
this.imgData.startY = -(this.imgData.height - this.outputHeight) / 2;
this.imgData.startX = 0;
} else {
scaleRatio = imgHeight / this.outputHeight;
this.imgData.width = imgWidth / scaleRatio;
this.imgData.height = this.outputHeight;
this.imgData.startX = -(this.imgData.width - this.outputWidth) / 2;
this.imgData.startY = 0;
}
},
_naturalSize: function _naturalSize() {
Expand Down
Loading

0 comments on commit 29ad64a

Please sign in to comment.