mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
This commit is contained in:
parent
d799005245
commit
d173240e8b
2 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue