Limit tiling path dropdown height.

This commit is contained in:
Matthias Mailänder
2025-08-15 21:06:49 +02:00
committed by Gustas Kažukauskas
parent 792231fbb9
commit 28b02f662f

View File

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