|
|
@ -20047,14 +20047,21 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
top: detailTop
|
|
|
|
top: detailTop
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (detailBottom &&
|
|
|
|
else if (detailBottom) {
|
|
|
|
window.innerHeight < detailBottom - detailTop &&
|
|
|
|
if (window.innerHeight < detailBottom - detailTop) {
|
|
|
|
this.getTop() + window.innerHeight > detailBottom) {
|
|
|
|
if (detailBottom && this.getTop() + window.innerHeight > detailBottom) {
|
|
|
|
window.scroll({
|
|
|
|
window.scroll({
|
|
|
|
top: detailBottom - window.innerHeight
|
|
|
|
top: detailBottom - window.innerHeight
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
window.scroll({
|
|
|
|
|
|
|
|
top: detailTop
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
this.renderNewElementsIfNeeded();
|
|
|
|
this.renderNewElementsIfNeeded();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
window.addEventListener('resize', () => {
|
|
|
|
window.addEventListener('resize', () => {
|
|
|
|