This commit is contained in:
Vanessa 2023-04-02 11:40:53 +08:00
parent fb9d45e7c2
commit 2d190bf708

View file

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