Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14568

Vanessad173240e8bf1
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts
index d42fbc2de2..95879a2545 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 50b214d6d4..00f90cab57 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);