Fixed: Poster/Overview checkbox in Movie Editor mode

pull/2/head
ta264 5 years ago
parent 000a4ec822
commit 318e05ddba

@ -71,7 +71,8 @@ class MovieIndexOverviews extends Component {
items, items,
sortKey, sortKey,
overviewOptions, overviewOptions,
jumpToCharacter jumpToCharacter,
isMovieEditorActive
} = this.props; } = this.props;
const { const {
@ -87,7 +88,8 @@ class MovieIndexOverviews extends Component {
if (this._grid && if (this._grid &&
(prevState.width !== width || (prevState.width !== width ||
prevState.rowHeight !== rowHeight || prevState.rowHeight !== rowHeight ||
hasDifferentItemsOrOrder(prevProps.items, items))) { hasDifferentItemsOrOrder(prevProps.items, items) ||
prevProps.isMovieEditorActive !== isMovieEditorActive)) {
// recomputeGridSize also forces Grid to discard its cache of rendered cells // recomputeGridSize also forces Grid to discard its cache of rendered cells
this._grid.recomputeGridSize(); this._grid.recomputeGridSize();
} }

@ -111,7 +111,8 @@ class MovieIndexPosters extends Component {
items, items,
sortKey, sortKey,
posterOptions, posterOptions,
jumpToCharacter jumpToCharacter,
isMovieEditorActive
} = this.props; } = this.props;
const { const {
@ -131,7 +132,8 @@ class MovieIndexPosters extends Component {
prevState.columnWidth !== columnWidth || prevState.columnWidth !== columnWidth ||
prevState.columnCount !== columnCount || prevState.columnCount !== columnCount ||
prevState.rowHeight !== rowHeight || prevState.rowHeight !== rowHeight ||
hasDifferentItemsOrOrder(prevProps.items, items))) { hasDifferentItemsOrOrder(prevProps.items, items) ||
prevState.isMovieEditorActive !== isMovieEditorActive)) {
// recomputeGridSize also forces Grid to discard its cache of rendered cells // recomputeGridSize also forces Grid to discard its cache of rendered cells
this._grid.recomputeGridSize(); this._grid.recomputeGridSize();
} }

Loading…
Cancel
Save