feat: 优化代码

pull/133/head
kunfei 5 years ago
parent 1854b0050a
commit 1298747e45
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt

@ -312,8 +312,8 @@ object ChapterProvider {
visibleBottom = paddingTop + visibleHeight
}
val TextPaint.textHeight: Float
private val TextPaint.textHeight: Float
get() {
return this.fontMetrics.descent - fontMetrics.ascent - fontMetrics.leading
return this.fontMetrics.descent - fontMetrics.ascent + fontMetrics.leading
}
}
Loading…
Cancel
Save