1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-02 00:20:40 +08:00

Revert "Refactor the menu's max height to be a property"

This reverts commit 9cb9ef5c
This commit is contained in:
aitani9
2021-06-24 14:32:00 -07:00
Unverified
parent 62566f2a4a
commit 34ace2553e
@@ -14,15 +14,13 @@ namespace osu.Game.Overlays.Settings
protected new class DropdownControl : OsuEnumDropdown<T>
{
protected virtual int MenuMaxHeight => 200;
public DropdownControl()
{
Margin = new MarginPadding { Top = 5 };
RelativeSizeAxes = Axes.X;
}
protected override DropdownMenu CreateMenu() => base.CreateMenu().With(m => m.MaxHeight = MenuMaxHeight);
protected override DropdownMenu CreateMenu() => base.CreateMenu().With(m => m.MaxHeight = 200);
}
}
}