Vanessa 2025-04-15 11:33:05 +08:00
parent d799005245
commit d173240e8b
2 changed files with 1 additions and 1 deletions

View File

@ -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);

View File

@ -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);