From 28b02f662fb1cbfbf90ae0b0020dc7b996d11884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Fri, 15 Aug 2025 21:06:49 +0200 Subject: [PATCH] Limit tiling path dropdown height. --- OpenRA.Mods.Common/Widgets/Logic/Editor/TilingPathToolLogic.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Editor/TilingPathToolLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Editor/TilingPathToolLogic.cs index 7eeafbdb47..c43783ddc0 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Editor/TilingPathToolLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Editor/TilingPathToolLogic.cs @@ -62,7 +62,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic return item; } - dropDown.ShowDropDown("LABEL_DROPDOWN_TEMPLATE", choices.Length * 30, choices, SetupItem); + var maxHeight = Math.Min(dropDown.Parent.Bounds.Width, choices.Length * 30); + dropDown.ShowDropDown("LABEL_DROPDOWN_TEMPLATE", maxHeight, choices, SetupItem); }; }