mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 02:04:20 +01:00
This commit is contained in:
parent
8f43458636
commit
2a418613fb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue