This commit is contained in:
Vanessa 2023-04-02 11:40:53 +08:00 committed by Liang Ding
parent 512f05215a
commit 2a5c4880ae
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -129,7 +129,7 @@ export class Menu {
if (position === "bottom" ) {
this.element.querySelectorAll(".b3-menu__submenu").forEach((item:HTMLElement) => {
item.style.top = "calc(50vh + 48.5px)";
})
});
}
this.popup({x: 0, y: position === "bottom" ? window.innerHeight / 2 : 0});
}