mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
f96298e34c
commit
b262d63085
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ const setHTML = (options: {
|
|||
removeElements.forEach(item => {
|
||||
item.remove();
|
||||
});
|
||||
protyle.contentElement.scrollTop = protyle.contentElement.scrollTop + (removeElement.getBoundingClientRect().top - lastRemoveTop);
|
||||
protyle.contentElement.scrollTop = protyle.contentElement.scrollTop + (removeElement.getBoundingClientRect().top - lastRemoveTop) - 1;
|
||||
protyle.scroll.lastScrollTop = protyle.contentElement.scrollTop;
|
||||
hideElements(["toolbar"], protyle);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue