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/17830

Vanessa2b16773df939
diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.ts
index 4f4f33d161..8306f66fdb 100644
--- a/app/src/protyle/render/av/row.ts
+++ b/app/src/protyle/render/av/row.ts
@@ -457,13 +457,13 @@ export const stickyRow = (blockElement: HTMLElement, scrollElement: HTMLElement,
if (blockElement.dataset.avType !== "table") {
return;
}
- const elementRect = scrollElement.getBoundingClientRect();
- const scrollTop = scrollElement.scrollTop;
const scrollEl = blockElement.querySelector(".av__scroll") as HTMLElement;
if (scrollEl) {
bindHeaderScrollSync(blockElement, scrollEl);
}
+ const elementRect = scrollElement.getBoundingClientRect();
+ const scrollTop = scrollElement.scrollTop;
if (status === "top" || status === "all") {
blockElement.querySelectorAll(".av__row--header").forEach((item: HTMLElement) => {
const body = item.parentElement as HTMLElement;