From a23b215b5a96656ef582cacfd0647c51e372bdf0 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 5 Dec 2009 13:53:58 +0000 Subject: [PATCH] (svn r18408) -Fix (r17954): After computing the needed width for the client list, also use it. --- src/network/network_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 1879446bef..d2e7c3ab00 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -2030,13 +2030,13 @@ struct NetworkClientListWindow : Window { this->server_client_width = max(GetStringBoundingBox(STR_NETWORK_SERVER).width, GetStringBoundingBox(STR_NETWORK_CLIENT).width) + WD_FRAMERECT_RIGHT; this->company_icon_width = GetSpriteSize(SPR_COMPANY_ICON).width + WD_FRAMERECT_LEFT; - uint width = 200; // Default width + uint width = 100; // Default width const NetworkClientInfo *ci; FOR_ALL_CLIENT_INFOS(ci) { width = max(width, GetStringBoundingBox(ci->client_name).width); } - size->width = WD_FRAMERECT_LEFT + this->server_client_width + this->company_icon_width + WD_FRAMERECT_RIGHT; + size->width = WD_FRAMERECT_LEFT + this->server_client_width + this->company_icon_width + width + WD_FRAMERECT_RIGHT; } virtual void OnPaint()