From 066f10edfc98c090223a8f8b1c4c0a00b00ea17b Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 14 Jan 2025 19:33:13 +0100 Subject: [PATCH] Solved menu open too top bug --- app/static/js/navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/static/js/navigation.js b/app/static/js/navigation.js index c5d3041..ac76fbf 100644 --- a/app/static/js/navigation.js +++ b/app/static/js/navigation.js @@ -84,7 +84,7 @@ document.addEventListener('DOMContentLoaded', () => { if (isTopLevel) { // Top-Level-Menüs öffnen nur nach oben oder unten if (spaceBelow < rect.height && spaceAbove > rect.height) { - submenu.style.bottom = `${window.innerHeight - parentRect.bottom}px`; + submenu.style.bottom = `${window.innerHeight - parentRect.bottom - parentRect.height}px`; submenu.style.top = 'auto'; } else { submenu.style.top = `${parentRect.height}px`;