Skip to content

Commit 55bc3e3

Browse files
committed
Fix INPUT_FIELD width and x position when isValid is not set
1 parent caa38af commit 55bc3e3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/gui/options/option-elements-inject.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ modmanager.gui.OptionsOptionInputField = ig.GuiElementBase.extend({
309309
this.isValidText.setPos(3, 2)
310310
this.addChildGui(this.isValidText)
311311
revalidate(text)
312+
} else {
313+
this.inputField.setPos(12, 0)
314+
this.inputField.setSize(this.inputField.hook.size.x + 10, this.inputField.hook.size.y)
312315
}
313316

314317
this.inputField.onCharacterInput = str => {

0 commit comments

Comments
 (0)