Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/5018

Vanessa7b6b50d58401
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts
index d248684860..8ba3816d1a 100644
--- a/app/src/protyle/util/onGet.ts
+++ b/app/src/protyle/util/onGet.ts
@@ -181,7 +181,7 @@ const setHTML = (options: { content: string, action?: string[] }, protyle: IProt
// https://github.com/siyuan-note/siyuan/issues/5018
if (!protyle.scroll.element.classList.contains("fn__none") &&
protyle.wysiwyg.element.lastElementChild.getAttribute("data-eof") !== "true" &&
- protyle.wysiwyg.element.clientHeight < protyle.contentElement.clientHeight) {
+ protyle.contentElement.scrollHeight <= protyle.contentElement.clientHeight) {
fetchPost("/api/filetree/getDoc", {
id: protyle.wysiwyg.element.lastElementChild.getAttribute("data-node-id"),
mode: 2,