1
0
forked from mirrors/0ad

Fix chat input size assignment typo

Fixes a typo introduced in fd847c2a23 where the code
incorrectly modified chatSubmitButton.size instead of
chatInput.size, effectively collapsing the input field's
width to zero.

This change ensures the chat input field resizes correctly
based on the button's position.

Thanks to Langbarg for noticing the issue.

Refs: #8138
This commit is contained in:
trompetin17
2025-06-27 02:35:33 -05:00
parent 22d3a52b38
commit 3db465587f
@@ -8,7 +8,7 @@ class ChatInputPanel
resizeGUIObjectToCaption(this.chatSubmitButton, { "horizontal": "left" }, { "horizontal": 8 });
this.chatInput = Engine.GetGUIObjectByName("chatInput");
this.chatSubmitButton.size.right = this.chatSubmitButton.size.left;
this.chatInput.size.right = this.chatSubmitButton.size.left;
this.chatInput = Engine.GetGUIObjectByName("chatInput");
this.chatInput.tooltip = colorizeAutocompleteHotkey(this.Tooltip);