chat: don't draw half line (lines shifted when active)

This commit is contained in:
Bixilon 2023-06-24 15:06:49 +02:00
parent 2b62a8a069
commit 5e5463f6bb
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -102,7 +102,7 @@ open class TextFlowElement(
override fun forceSilentApply() {
val visibleLines: MutableList<TextFlowLineElement> = mutableListOf()
val maxSize = maxSize
val maxLines = maxSize.y / (properties.lineHeight + properties.lineSpacing)
val maxLines = (maxSize.y / (properties.lineHeight + properties.lineSpacing)).toInt()
val currentTime = millis()
var textSize = Vec2.EMPTY
val active = this.active