From c425650b7d9a01eae6d2f5b1afa48c6e2e2b5557 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 28 May 2018 15:43:06 +0100 Subject: [PATCH] Truncate mod-version labels to the correct width. --- OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs index 7b3095350b..d8f1290f04 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs @@ -262,7 +262,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic modVersion.GetColor = () => currentServer.IsCompatible ? modVersion.TextColor : incompatibleVersionColor; var font = Game.Renderer.Fonts[modVersion.Font]; - var version = new CachedTransform(s => WidgetUtils.TruncateText(s.ModLabel, mapTitle.Bounds.Width, font)); + var version = new CachedTransform(s => WidgetUtils.TruncateText(s.ModLabel, modVersion.Bounds.Width, font)); modVersion.GetText = () => version.Update(currentServer); }