From b6d17ac0b7cad9aaa090ba6bb745c646b3662e85 Mon Sep 17 00:00:00 2001 From: HighImKevin Date: Wed, 3 Dec 2025 07:47:41 -0500 Subject: [PATCH] Force Season popover to appear beflow the Select Season button --- scripts/seriesEpisodes.js | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/scripts/seriesEpisodes.js b/scripts/seriesEpisodes.js index 966a76e..1cd5c8c 100644 --- a/scripts/seriesEpisodes.js +++ b/scripts/seriesEpisodes.js @@ -318,24 +318,10 @@ const popover = createPopover(); sectionTitleContainer.style.position = 'relative'; selectButton.parentNode.insertBefore(popover, selectButton.nextSibling); - - // Check if popover would overflow bottom of viewport - const popoverRect = popover.getBoundingClientRect(); - const viewportHeight = window.innerHeight; - const wouldOverflowBottom = popoverRect.bottom > viewportHeight; - - if (wouldOverflowBottom) { - popover.style.top = 'auto'; - popover.style.bottom = '100%'; - popover.style.marginTop = '0'; - popover.style.marginBottom = '8px'; - LOG('Popover positioned above button to avoid overflow'); - } else { - popover.style.top = '100%'; - popover.style.bottom = 'auto'; - popover.style.marginTop = '8px'; - popover.style.marginBottom = '0'; - } + popover.style.top = '100%'; + popover.style.bottom = 'auto'; + popover.style.marginTop = '8px'; + popover.style.marginBottom = '0'; activePopover = popover;