From 3db465587fa11383b3f3c316b222069427566056 Mon Sep 17 00:00:00 2001 From: trompetin17 Date: Fri, 27 Jun 2025 02:35:33 -0500 Subject: [PATCH] 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 --- .../gamesetup/Pages/GameSetupPage/Panels/Chat/ChatInputPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/Panels/Chat/ChatInputPanel.js b/binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/Panels/Chat/ChatInputPanel.js index 38feed0e2e..63aefe5871 100644 --- a/binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/Panels/Chat/ChatInputPanel.js +++ b/binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/Panels/Chat/ChatInputPanel.js @@ -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);