From 4bfabf3d7279f41380ad0a70568486730f2b0a16 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 4 Mar 2022 11:41:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../legado/app/ui/book/read/page/provider/ChapterProvider.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 75c51c713..352f2eff8 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 @@ -204,11 +204,12 @@ object ChapterProvider { book: Book, chapter: BookChapter, src: String, - absStartX: Int, + x: Int, y: Float, textPages: ArrayList, imageStyle: String?, ): Float { + val absStartX = x - paddingLeft var durY = y ImageProvider.getImage(book, chapter.index, src, ReadBook.bookSource)?.let { if (durY > visibleHeight) {