Vanessa 2025-04-07 23:50:44 +08:00
parent ee36abed5c
commit b86d583d1a
2 changed files with 8 additions and 4 deletions

View file

@ -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"));
}
}
}