kunfei 3 лет назад
Родитель
Сommit
95854e6447

+ 2 - 2
app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt

@@ -675,12 +675,12 @@ object ChapterProvider {
     }
     }
 
 
     /**
     /**
-     * 更新View尺寸
+     * 更新View尺寸,height减去1dp防止下划线无法画全
      */
      */
     fun upViewSize(width: Int, height: Int) {
     fun upViewSize(width: Int, height: Int) {
         if (width > 0 && height > 0 && (width != viewWidth || height != viewHeight)) {
         if (width > 0 && height > 0 && (width != viewWidth || height != viewHeight)) {
             viewWidth = width
             viewWidth = width
-            viewHeight = height
+            viewHeight = height - 1.dpToPx()
             upLayout()
             upLayout()
             postEvent(EventBus.UP_CONFIG, true)
             postEvent(EventBus.UP_CONFIG, true)
         }
         }