Skip to content

Commit 9eb0f44

Browse files
NopoTheGamerlineargraph
authored andcommitted
fix it not showing the next number when it expands
1 parent 4207793 commit 9eb0f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/io/github/notenoughupdates/moulconfig/gui/component/TextFieldComponent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ open class TextFieldComponent(
2525
private var scrollOffset = 0
2626
private var visibleText: String? = null
2727
override fun getWidth(): Int {
28-
if (isFocused) return max(preferredWidth, font.getStringWidth(text.get()))
28+
if (isFocused) return max(preferredWidth, font.getStringWidth(text.get()) + 10)
2929
return preferredWidth
3030
}
3131

0 commit comments

Comments
 (0)