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:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user