From b7c4497dfdef477112d0fcf0dbbb2463449f6bfb Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Fri, 20 Mar 2026 15:41:34 +0100 Subject: [PATCH] fix(web): allow showing combobox items outside modals (#27075) fix(web): allow showing combobox items outside of modals --- web/src/lib/components/shared-components/combobox.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/lib/components/shared-components/combobox.svelte b/web/src/lib/components/shared-components/combobox.svelte index 4721357012..803087feef 100644 --- a/web/src/lib/components/shared-components/combobox.svelte +++ b/web/src/lib/components/shared-components/combobox.svelte @@ -212,12 +212,12 @@ bottom: `${rootHeight - top}px`, left: `${left}px`, width: `${boundary.width}px`, - maxHeight: maxHeight(top - dropdownOffset), + maxHeight: maxHeight(boundary.top - dropdownOffset), }; } - const viewportHeight = visualViewport?.height || rootHeight; - const availableHeight = modalBounds ? rootHeight - bottom : viewportHeight - boundary.bottom; + const viewportHeight = visualViewport?.height || window.innerHeight; + const availableHeight = viewportHeight - boundary.bottom; return { top: `${bottom}px`, left: `${left}px`,