diff --git a/app/src/util/highlightById.ts b/app/src/util/highlightById.ts index 1ef92d030..07cb2e5a0 100644 --- a/app/src/util/highlightById.ts +++ b/app/src/util/highlightById.ts @@ -104,7 +104,7 @@ export const scrollCenter = ( const contentRect = protyle.contentElement.getBoundingClientRect(); if (position === "start") { protyle.contentElement.scroll({ - top: protyle.contentElement.scrollTop + elementRect.top - contentRect.top, + top: protyle.contentElement.scrollTop + elementRect.top - contentRect.top - (window.siyuan.config.editor.fontSize * 1.625 * 2 + 24), behavior }); return;