The menu no longer extends beyond the window (#15401)

* 💄 The menu no longer extends beyond the window

fix https://github.com/siyuan-note/siyuan/issues/15400

* 🎨 The menu no longer extends beyond the window

fix https://github.com/siyuan-note/siyuan/issues/15400

* 🎨 The menu no longer extends beyond the window

fix https://github.com/siyuan-note/siyuan/issues/15400

* 🎨 The menu no longer extends beyond the window

fix https://github.com/siyuan-note/siyuan/issues/15400
This commit is contained in:
Jeffrey Chen 2026-03-09 17:45:48 +08:00 committed by GitHub
parent e95d2d955f
commit 606986c0ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 83 additions and 34 deletions

View file

@ -68,6 +68,7 @@ export const init = (app: App) => {
resizeTimeout = window.setTimeout(() => {
adjustLayout(window.siyuan.layout.centerLayout);
resizeTabs();
window.siyuan.menus.menu.resetPosition();
if (getSelection().rangeCount > 0) {
const range = getSelection().getRangeAt(0);
getAllEditor().forEach(item => {