Rollback text input panel dimensions change

This commit is contained in:
DBotThePony 2024-11-16 11:17:17 +07:00
parent 87de48fffe
commit acd5c06b7a
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -41,7 +41,7 @@ open class TextInputPanel<out S : Screen>(
x: Float = 0f,
y: Float = 0f,
width: Float = 60f,
height: Float = 15f,
height: Float = 11f,
) : EditablePanel<S>(screen, parent, x, y, width, height) {
private data class TextSelection(val cursor: Int, val shift: Int) {
val isLeft get() = shift < 0
@ -159,7 +159,7 @@ open class TextInputPanel<out S : Screen>(
init {
scissor = true
dockPadding = DockProperty(3f, 3f, 3f, 3f)
dockPadding = DockProperty(3f, 2f, 3f, 2f)
}
private var oldText = ArrayList<String>()