korlibs / korlibs/korge

UIText: Background dimension doesn't adjust to multiline text

Open
#1,096 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
3k
Forks
148
Avg merge
13h 44m
Merged PRs (30d)
1

Description

val errorBlock = uiText("This is a test\nblahblah blh blah blah") {
bgcolor = Colors.RED
alignY(root, 0.8, true)
centerXOnStage()
}

image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with the provided uiText snippet and its multiline string, red background, and alignment settings. Trace how uiText measures multiline content and sizes its background; done means the background covers all rendered lines, with the single-line behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.