Skip to content

Commit

Permalink
fix(img-cropper): crop if auto crop is available
Browse files Browse the repository at this point in the history
  • Loading branch information
alyleui committed Nov 12, 2018
1 parent f9b14bf commit 3a4c749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/resizing-cropping-images/resizing-cropping-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ export class LyResizingCroppingImages {
x: x - rootRect.x,
y: y - rootRect.y
});

this._cropIfAutoCrop();
}

private imageSmoothingQuality(img: HTMLCanvasElement, config, quality: number): HTMLCanvasElement {
Expand Down

0 comments on commit 3a4c749

Please sign in to comment.