Skip to content

Commit

Permalink
Adjust thumbnails when toggled on and off
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin committed Jan 3, 2017
1 parent 3335efa commit a3caa83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-image-gallery",
"version": "0.7.6",
"version": "0.7.7",
"description": "React Carousel, React Image gallery, React Slide Show component",
"main": "./build/image-gallery",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/ImageGallery.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default class ImageGallery extends React.Component {

componentDidUpdate(prevProps, prevState) {
if (prevProps.thumbnailPosition !== this.props.thumbnailPosition ||
prevProps.showThumbnails !== this.props.showThumbnails ||
prevState.thumbnailsWrapperHeight !== this.state.thumbnailsWrapperHeight ||
prevState.thumbnailsWrapperWidth !== this.state.thumbnailsWrapperWidth) {
this._handleResize();
Expand Down

0 comments on commit a3caa83

Please sign in to comment.