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) } }