Fixed: Poster/Overview checkbox in Movie Editor mode

This commit is contained in:
ta264 2019-12-08 17:39:20 +00:00
parent 000a4ec822
commit 318e05ddba
2 changed files with 8 additions and 4 deletions

View File

@ -71,7 +71,8 @@ class MovieIndexOverviews extends Component {
items,
sortKey,
overviewOptions,
jumpToCharacter
jumpToCharacter,
isMovieEditorActive
} = this.props;
const {
@ -87,7 +88,8 @@ class MovieIndexOverviews extends Component {
if (this._grid &&
(prevState.width !== width ||
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
this._grid.recomputeGridSize();
}

View File

@ -111,7 +111,8 @@ class MovieIndexPosters extends Component {
items,
sortKey,
posterOptions,
jumpToCharacter
jumpToCharacter,
isMovieEditorActive
} = this.props;
const {
@ -131,7 +132,8 @@ class MovieIndexPosters extends Component {
prevState.columnWidth !== columnWidth ||
prevState.columnCount !== columnCount ||
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
this._grid.recomputeGridSize();
}