From baba6159d230720586e7e7ad47992e9f48e2228c Mon Sep 17 00:00:00 2001 From: Horis <8674809+821938089@users.noreply.github.com> Date: Fri, 12 Dec 2025 15:55:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20#5601?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/book/read/page/provider/TextChapterLayout.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextChapterLayout.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextChapterLayout.kt index 31b6c35a5..1cfb3ec4e 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextChapterLayout.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/TextChapterLayout.kt @@ -342,8 +342,10 @@ class TextChapterLayout( width = visibleWidth height = size.height * visibleWidth / size.width if (pageAnim != PageAnim.scrollPageAnim && height > visibleHeight - durY) { - width = width * visibleHeight / height - height = visibleHeight + if (height > visibleHeight) { + width = width * visibleHeight / height + height = visibleHeight + } prepareNextPageIfNeed(durY + height) } }