Skip to content

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

:bug: Fix floating dock resize callbacks https://github.com/siyuan-note/siyuan/issues/19449

Danielebb647226c00
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index c612e6f75e..c2e807f80b 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -305,7 +305,7 @@ export class Dock {
documentSelf.onselectstart = null;
documentSelf.onselect = null;
this.setSize();
- [...this.elements[0].querySelectorAll(".dock__item--active"), ...this.elements[0].querySelectorAll(".dock__item--active")].forEach(item => {
+ [...this.elements[0].querySelectorAll(".dock__item--active"), ...this.elements[1].querySelectorAll(".dock__item--active")].forEach(item => {
const customModel = this.data[item.getAttribute("data-type") as TDock];
if (customModel && customModel instanceof Custom && customModel.resize) {
customModel.resize();