SYNC: slightly better dropdownmanu-layout algorithm

This commit is contained in:
SPRINX0\prochazka
2025-03-26 16:13:01 +01:00
committed by Diflow
parent c1da8321ac
commit bd571dc93d
5 changed files with 54 additions and 35 deletions

View File

@@ -14,8 +14,9 @@
function handleClick(e) {
const rect = e.detail.target.getBoundingClientRect();
const left = rect.left;
const top = rect.bottom;
currentDropDownMenu.set({ left, top, items: menu });
const top = rect.top;
// const top = rect.bottom;
currentDropDownMenu.set({ left, bottom: window.innerHeight - top, items: menu });
}
</script>