|
|
|
@ -601,14 +601,12 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
renderMovieElems = (): void => {
|
|
|
|
|
console.log('renderMovieElems');
|
|
|
|
|
const renderElements = (
|
|
|
|
|
render: boolean,
|
|
|
|
|
hasEpisodesResult: any,
|
|
|
|
|
searchValues: Array<string>,
|
|
|
|
|
itemsPerRow: number
|
|
|
|
|
): Record<string, any> => {
|
|
|
|
|
console.log('renderElements');
|
|
|
|
|
const origRenderedRows = this.renderedRows;
|
|
|
|
|
const origRenderedItems = this.renderedItems;
|
|
|
|
|
const origColumnsCount = this.columnsCount;
|
|
|
|
@ -690,7 +688,6 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
|
lastRowTop = movieElem.getBoundingClientRect().top;
|
|
|
|
|
if (!isScrolledIntoView(movieElem) && !this.maxRenderCount && this.renderedItems > 0) {
|
|
|
|
|
this.maxRenderCount = this.renderedItems - 1 + this.columnsCount * loadAdditionalRowsCount;
|
|
|
|
|
console.log(`1: this.maxRenderCount = ${this.maxRenderCount}`);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.maxRows && this.renderedRows > this.maxRows && !this.useHorizontalScroll) {
|
|
|
|
|