mirror of
https://github.com/ppy/osu
synced 2024-12-26 08:53:10 +00:00
Override CreateMenu
instead of using a property
This commit is contained in:
parent
34ace2553e
commit
93edb25ace
@ -192,8 +192,8 @@ namespace osu.Game.Configuration
|
||||
|
||||
private class ModDropdownControl : DropdownControl
|
||||
{
|
||||
// Set low enough to workaround nested scroll issues (see https://github.com/ppy/osu-framework/issues/4536).
|
||||
protected override int MenuMaxHeight => 100;
|
||||
// Set menu's max height low enough to workaround nested scroll issues (see https://github.com/ppy/osu-framework/issues/4536).
|
||||
protected override DropdownMenu CreateMenu() => base.CreateMenu().With(m => m.MaxHeight = 100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user