Fix: Posters and episode previews randomly do not have correct width

pull/30/head 2.0.7
Juraj Nyíri 4 years ago
parent 77a563fe18
commit 4aab554872

@ -21093,6 +21093,11 @@ class PlexMeetsHomeAssistant extends HTMLElement {
CSS_STYLE.episodeWidth = Math.floor(areaSize / episodesInRow - marginRight);
CSS_STYLE.episodeHeight = Math.round(CSS_STYLE.episodeWidth * CSS_STYLE.episodeRatio);
}
else {
setTimeout(() => {
this.renderPage();
}, 250);
}
}
this.renderedItems = 0;
this.columnsCount = 0;

@ -501,6 +501,10 @@ class PlexMeetsHomeAssistant extends HTMLElement {
CSS_STYLE.episodeWidth = Math.floor(areaSize / episodesInRow - marginRight);
CSS_STYLE.episodeHeight = Math.round(CSS_STYLE.episodeWidth * CSS_STYLE.episodeRatio);
} else {
setTimeout(() => {
this.renderPage();
}, 250);
}
}

Loading…
Cancel
Save