From fb35a0b4c6e0f46508f2551ed55653bb51833505 Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Thu, 26 Mar 2026 09:37:35 +0100 Subject: [PATCH] Fix other popover layou issues (gh-12923) Co-authored-by: mr. m <91018726+mr-cheffy@users.noreply.github.com> --- src/zen/common/modules/ZenUIManager.mjs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/zen/common/modules/ZenUIManager.mjs b/src/zen/common/modules/ZenUIManager.mjs index ec722ea91..c5b64643d 100644 --- a/src/zen/common/modules/ZenUIManager.mjs +++ b/src/zen/common/modules/ZenUIManager.mjs @@ -338,7 +338,12 @@ window.gZenUIManager = { // handle the constraint, enabling proper overflow scrolling. // See gh-12782 _constrainNativePopoverHeight(panel) { - if (panel.id !== "appMenu-popup") { + const panelIds = [ + "appMenu-popup", + "customizationui-widget-panel", + "widget-overflow", + ]; + if (!panelIds.includes(panel.id)) { return; } // NSPopover adds 13px of chrome on all sides (26px vertical total), @@ -346,7 +351,8 @@ window.gZenUIManager = { // Previous macOS versions have similar or smaller values, so this is a // conservative upper bound. const popoverChrome = 26; - panel.style.maxHeight = `${window.screen.availHeight - popoverChrome}px`; + const maxHeight = window.screen.availHeight - popoverChrome; + panel.style.maxHeight = `${maxHeight}px`; }, onPopupShowing(showEvent) {