Override CreateMenu instead of using a property

This commit is contained in:
aitani9 2021-06-24 14:32:43 -07:00
parent 34ace2553e
commit 93edb25ace

View File

@ -192,8 +192,8 @@ namespace osu.Game.Configuration
private class ModDropdownControl : DropdownControl private class ModDropdownControl : DropdownControl
{ {
// Set low enough to workaround nested scroll issues (see https://github.com/ppy/osu-framework/issues/4536). // Set menu's max height low enough to workaround nested scroll issues (see https://github.com/ppy/osu-framework/issues/4536).
protected override int MenuMaxHeight => 100; protected override DropdownMenu CreateMenu() => base.CreateMenu().With(m => m.MaxHeight = 100);
} }
} }
} }