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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user