Limit tiling path dropdown height.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
792231fbb9
commit
28b02f662f
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user