Fix: Render new items if needed on resize

pull/16/head
Juraj Nyíri 4 years ago
parent 1e9f51c0bb
commit 31926ddf7f

@ -19812,6 +19812,9 @@ class PlexMeetsHomeAssistant extends HTMLElement {
window.addEventListener('scroll', () => { window.addEventListener('scroll', () => {
this.renderNewElementsIfNeeded(); this.renderNewElementsIfNeeded();
}); });
window.addEventListener('resize', () => {
this.renderNewElementsIfNeeded();
});
this.loading = true; this.loading = true;
this.renderPage(); this.renderPage();
try { try {

@ -135,6 +135,9 @@ class PlexMeetsHomeAssistant extends HTMLElement {
window.addEventListener('scroll', () => { window.addEventListener('scroll', () => {
this.renderNewElementsIfNeeded(); this.renderNewElementsIfNeeded();
}); });
window.addEventListener('resize', () => {
this.renderNewElementsIfNeeded();
});
this.loading = true; this.loading = true;
this.renderPage(); this.renderPage();
try { try {

Loading…
Cancel
Save