mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
This commit is contained in:
parent
ee36abed5c
commit
b86d583d1a
2 changed files with 8 additions and 4 deletions
|
|
@ -276,7 +276,7 @@ export const copyTab = (app: App, tab: Tab) => {
|
|||
if (newElement) {
|
||||
editor.protyle.observerLoad?.disconnect();
|
||||
newElement.scrollIntoView();
|
||||
editor.protyle.contentElement.scrollTop += newElement.getBoundingClientRect().top - parseInt(copyResizeTopElement.getAttribute("data-resize-top"));
|
||||
editor.protyle.contentElement.scrollTop += parseInt(copyResizeTopElement.getAttribute("data-resize-top"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue