diff --git a/src/index.tsx b/src/index.tsx index 7227914..ab9c078 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -123,6 +123,8 @@ class Cropper extends React.Component { this.computeSizes() } else if (prevProps.zoom !== this.props.zoom) { this.recomputeCropPosition() + } else if (prevProps.cropSize !== this.props.cropSize) { + this.computeSizes() } if (prevProps.zoomWithScroll !== this.props.zoomWithScroll && this.containerRef) { this.props.zoomWithScroll