From a29b37ddefcb71b91eeb36d35fbaa5c168110239 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Mon, 19 Oct 2026 16:06:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=98=85=E8=AF=BB=E7=BC=96=E8=BE=91):=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8F=8C=E9=A1=B5=E5=B8=83=E5=B1=80=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=95=99=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/webui/ofdgo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/webui/ofdgo.js b/assets/webui/ofdgo.js index f47f5ec..861d674 100644 --- a/assets/webui/ofdgo.js +++ b/assets/webui/ofdgo.js @@ -12094,7 +12094,7 @@ function fitWidth(updateStatus = true) { function fitWidthScale(page) { if (state.pageLayout > 1) { const size = pageGroupSize(); - return Math.min(4, Math.max(1, el.viewerPanel.clientWidth - pageSpace() * 2 - (state.continuous ? 0 : PAGE_LAYOUT_GAP) - scrollbarWidth()) / (size.width * MM_TO_PX)); + return Math.min(4, Math.max(1, el.viewerPanel.offsetWidth - pageSpace() * 2 - (state.continuous ? 0 : PAGE_LAYOUT_GAP) - scrollbarWidth()) / (size.width * MM_TO_PX)); } page = pageViewSize(page); const space = pageSpace(); @@ -12126,7 +12126,7 @@ function fitHeight(updateStatus = true) { } if (state.pageLayout > 1) { const size = pageGroupSize(), space = pageSpace(), gap = state.continuous ? 0 : PAGE_LAYOUT_GAP; - const width = Math.max(1, el.viewerPanel.clientWidth - space * 2 - gap - scrollbarWidth()); + const width = Math.max(1, el.viewerPanel.offsetWidth - space * 2 - gap - scrollbarWidth()); const height = Math.max(1, el.viewerPanel.clientHeight - space * 2); setScale(Math.min(width / (size.width * MM_TO_PX), height / (size.height * MM_TO_PX)), updateStatus, "height"); if (updateStatus) scrollToPage(state.pageIndex);