1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

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
{
// 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);
}
}
}