💄 帮助展现位置

This commit is contained in:
Vanessa 2023-01-24 19:36:45 +08:00
parent 3b9ae96dbd
commit a043604e54
3 changed files with 6 additions and 13 deletions

View file

@ -117,7 +117,7 @@ export const initStatus = () => {
}
}).element);
const rect = target.getBoundingClientRect();
window.siyuan.menus.menu.popup({x: rect.right, y: rect.bottom, h: rect.height}, true);
window.siyuan.menus.menu.popup({x: rect.right, y: rect.top}, true);
event.stopPropagation();
break;
} else if (target.classList.contains("b3-menu__item")) {