This commit is contained in:
kunfei committed 2022-02-11 09:50:46 +08:00
1 parent 1852f95bd0
commit 1a1bec06de
1 file changed
+1 -1
@@ -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
}