This commit is contained in:
Vanessa 2022-12-22 22:19:04 +08:00
parent 26e6b23887
commit 62d975a1e9
7 changed files with 67 additions and 67 deletions

View file

@ -282,9 +282,9 @@ export class Wnd {
const oldTab = getInstanceById(tabId) as Tab;
if (oldTab.model instanceof Asset) {
// https://github.com/siyuan-note/siyuan/issues/6890
const pdfViewerElement = oldTab.model.element.querySelector("#viewerContainer")
const pdfViewerElement = oldTab.model.element.querySelector("#viewerContainer");
if (pdfViewerElement) {
pdfViewerElement.setAttribute("data-scrolltop", pdfViewerElement.scrollTop.toString())
pdfViewerElement.setAttribute("data-scrolltop", pdfViewerElement.scrollTop.toString());
}
}
if (dragElement.style.height === "50%" || dragElement.style.width === "50%") {