This commit is contained in:
kunfei
2022-02-11 09:50:46 +08:00
parent 56e9e22262
commit ebc95861a6

View File

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