diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt index 969d4830e..ccfe10564 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt @@ -124,6 +124,7 @@ object ChapterProvider { var durY = y ImageProvider.getImage(book, chapter.index, src)?.let { if (durY > visibleHeight) { + textPages.last().height = durY textPages.add(TextPage()) durY = 0f } @@ -144,6 +145,7 @@ object ChapterProvider { height = visibleHeight } if (durY + height > visibleHeight) { + textPages.last().height = durY textPages.add(TextPage()) durY = 0f }