diff --git a/src/Gallery.js b/src/Gallery.js index 6f5c07b..e533e10 100644 --- a/src/Gallery.js +++ b/src/Gallery.js @@ -31,7 +31,7 @@ class Gallery extends Component { } componentWillReceiveProps (np) { - if(this.state.images != np.images){ + if(this.state.images != np.images || this.props.maxRows != np.maxRows){ this.setState({ images: np.images, thumbnails: this.renderThumbs(this._gallery.clientWidth,