mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 15:25:59 +00:00
SYNC: slightly better dropdownmanu-layout algorithm
This commit is contained in:
committed by
Diflow
parent
c1da8321ac
commit
bd571dc93d
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user