Skip to content

Commit

Permalink
refresh arraow visibility - container dependent (#1252)
Browse files Browse the repository at this point in the history
Co-authored-by: liatv <liatvi@wix.com>
  • Loading branch information
IzaacAyelin and liatv authored Jun 18, 2024
1 parent 89e1dcf commit 1777424
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,11 @@ class SlideshowView extends React.Component {
}
);
}
if (this.props.totalItemsCount !== props.totalItemsCount) {
if (
this.props.totalItemsCount !== props.totalItemsCount ||
this.props.container.galleryHeight !== props.container.galleryHeight ||
this.props.container.galleryWidth !== props.container.galleryWidth
) {
this.removeArrowsIfNeeded();
}
if (isEditMode() || isPreviewMode()) {
Expand Down

0 comments on commit 1777424

Please sign in to comment.