pull/1606/head
kunfei 3 years ago
parent 56e9e22262
commit ebc95861a6
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt

@ -285,7 +285,7 @@ object ChapterProvider {
) )
var durY = when { var durY = when {
//标题y轴居中 //标题y轴居中
isTitleWithNoContent -> ((visibleHeight - layout.lineCount * textPaint.textHeight) / 2).toFloat() isTitleWithNoContent -> ((visibleHeight - layout.lineCount * textPaint.textHeight) / 2)
isTitle -> y + titleTopSpacing isTitle -> y + titleTopSpacing
else -> y else -> y
} }

Loading…
Cancel
Save