mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
13b6b365f4
commit
f9d71002fc
1 changed files with 4 additions and 0 deletions
|
|
@ -32,7 +32,11 @@ export const pdfResize = () => {
|
|||
if (!pdfDocument) {
|
||||
return;
|
||||
}
|
||||
// https://github.com/siyuan-note/siyuan/issues/8097
|
||||
const pdfViewerElement = item.element.querySelector("#viewerContainer");
|
||||
if (pdfViewerElement.clientHeight === 0) {
|
||||
return;
|
||||
}
|
||||
if (pdfViewerElement) {
|
||||
// https://github.com/siyuan-note/siyuan/issues/6890
|
||||
const scrollTop = pdfViewerElement.getAttribute("data-scrolltop");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue