mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
5c60719c4c
commit
25d9b7b43d
2 changed files with 12 additions and 2 deletions
|
|
@ -222,6 +222,13 @@ export class Wnd {
|
|||
}
|
||||
cloneTabElement.before(oldTab.headElement);
|
||||
cloneTabElement.remove();
|
||||
if (oldTab.model instanceof Asset) {
|
||||
// https://github.com/siyuan-note/siyuan/issues/6890
|
||||
const pdfViewerElement = oldTab.model.element.querySelector("#viewerContainer");
|
||||
if (pdfViewerElement) {
|
||||
pdfViewerElement.setAttribute("data-scrolltop", pdfViewerElement.scrollTop.toString());
|
||||
}
|
||||
}
|
||||
// 对象顺序
|
||||
const newWnd = getInstanceById(it.parentElement.parentElement.getAttribute("data-id")) as Wnd;
|
||||
newWnd.moveTab(oldTab, nextTabHeaderElement ? nextTabHeaderElement.getAttribute("data-id") : undefined);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue