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); }; }