Skip to content

Commit

Permalink
docs: improve example for dynamic aspect ratio
Browse files Browse the repository at this point in the history
ref #1015
  • Loading branch information
fengyuanchen committed Jan 1, 2023
1 parent 27e4f59 commit 1e76d41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/minimum-and-maximum-cropped-dimensions.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ <h3>Result</h3>
},

crop: function (event) {
var width = event.detail.width;
var height = event.detail.height;
var width = Math.round(event.detail.width);
var height = Math.round(event.detail.height);

if (
width < minCroppedWidth
Expand Down

0 comments on commit 1e76d41

Please sign in to comment.