Vanessa 2025-12-25 22:41:31 +08:00
parent 8f43458636
commit 2a418613fb

View file

@ -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;