diff --git a/OpenRA.Game/Widgets/DropDownButtonWidget.cs b/OpenRA.Game/Widgets/DropDownButtonWidget.cs index edf97a7ba3..d30db90d50 100644 --- a/OpenRA.Game/Widgets/DropDownButtonWidget.cs +++ b/OpenRA.Game/Widgets/DropDownButtonWidget.cs @@ -87,7 +87,7 @@ namespace OpenRA.Widgets Ui.Root.AddChild(panel); } - public void ShowDropDown(string panelTemplate, int height, IEnumerable options, Func setupItem) + public void ShowDropDown(string panelTemplate, int maxHeight, IEnumerable options, Func setupItem) { var substitutions = new Dictionary() {{ "DROPDOWN_WIDTH", Bounds.Width }}; var panel = (ScrollPanelWidget)Ui.LoadWidget(panelTemplate, null, new WidgetArgs() @@ -106,7 +106,7 @@ namespace OpenRA.Widgets panel.AddChild(item); } - panel.Bounds.Height = Math.Min(height, panel.ContentHeight); + panel.Bounds.Height = Math.Min(maxHeight, panel.ContentHeight); AttachPanel(panel); }