diff --git a/src/index.js b/src/index.js index f96e286..68015bd 100644 --- a/src/index.js +++ b/src/index.js @@ -38,6 +38,8 @@ class Cropper extends React.Component { componentDidUpdate(prevProps) { if (prevProps.zoom !== this.props.zoom) { this.recomputeCropPosition() + } else if (prevProps.aspect !== this.props.aspect) { + this.computeSizes() } }