diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts index 6a75cc84a..f1a1eaed1 100644 --- a/app/src/protyle/render/av/render.ts +++ b/app/src/protyle/render/av/render.ts @@ -296,7 +296,7 @@ const afterRenderTable = (options: ITableOptions) => { if (headerTransformElement) { headerTransformElement.style.transform = options.resetData.headerTransform.transform; } - } else if (editRect) { + } else if (editRect && options.protyle && !options.protyle.options.action.includes(Constants.CB_GET_HISTORY)) { // 需等待渲染完,否则 getBoundingClientRect 错误 https://github.com/siyuan-note/siyuan/issues/13787 setTimeout(() => { stickyRow(options.blockElement, editRect, "top"); @@ -307,7 +307,7 @@ const afterRenderTable = (options: ITableOptions) => { if (footerTransformElement) { footerTransformElement.style.transform = options.resetData.footerTransform.transform; } - } else if (editRect) { + } else if (editRect && options.protyle && !options.protyle.options.action.includes(Constants.CB_GET_HISTORY)) { // 需等待渲染完,否则 getBoundingClientRect 错误 https://github.com/siyuan-note/siyuan/issues/13787 setTimeout(() => { stickyRow(options.blockElement, editRect, "bottom");