mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user