mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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:
parent
22d3a52b38
commit
3db465587f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue