mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
This commit is contained in:
parent
4724624ef9
commit
4da7de45ea
1 changed files with 1 additions and 0 deletions
|
|
@ -274,6 +274,7 @@ export const copyTab = (app: App, tab: Tab) => {
|
|||
if (copyResizeTopElement) {
|
||||
const newElement = editor.protyle.wysiwyg.element.querySelector(`[data-node-id="${copyResizeTopElement.getAttribute("data-node-id")}"]`)
|
||||
if (newElement) {
|
||||
editor.protyle.observerLoad?.disconnect();
|
||||
newElement.scrollIntoView();
|
||||
editor.protyle.contentElement.scrollTop += newElement.getBoundingClientRect().top - parseInt(copyResizeTopElement.getAttribute("data-resize-top"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue