diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts index d42fbc2de..95879a254 100644 --- a/app/src/layout/Wnd.ts +++ b/app/src/layout/Wnd.ts @@ -974,6 +974,7 @@ export class Wnd { // 场景:没有打开的文档,点击标签面板打开 return this; } + recordBeforeResizeTop(); const wnd = new Wnd(this.app, direction); if (direction === this.parent.direction) { this.parent.addWnd(wnd, this.id); diff --git a/app/src/layout/index.ts b/app/src/layout/index.ts index 50b214d6d..00f90cab5 100644 --- a/app/src/layout/index.ts +++ b/app/src/layout/index.ts @@ -71,7 +71,6 @@ export class Layout { } addWnd(child: Wnd, id?: string) { - recordBeforeResizeTop(); if (!id) { this.children.splice(this.children.length, 0, child); this.element.append(child.element);