1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 02:33:20 +08:00

Fix incorrect dropdown menu height

This commit is contained in:
Andrei Zavatski 2020-01-10 16:41:17 +03:00
parent d48b161662
commit 474d7e92d9

View File

@ -16,7 +16,7 @@ namespace osu.Game.Overlays.Rankings
public class SpotlightSelector : Container
{
private readonly Box background;
private readonly OsuDropdown<APISpotlight> dropdown;
private readonly SpotlightsDropdown dropdown;
private readonly DimmedLoadingLayer loading;
[Resolved]
@ -32,7 +32,7 @@ namespace osu.Game.Overlays.Rankings
{
RelativeSizeAxes = Axes.Both,
},
dropdown = new OsuDropdown<APISpotlight>
dropdown = new SpotlightsDropdown
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
@ -63,5 +63,10 @@ namespace osu.Game.Overlays.Rankings
};
api.Queue(request);
}
private class SpotlightsDropdown : OsuDropdown<APISpotlight>
{
protected override DropdownMenu CreateMenu() => base.CreateMenu().With(menu => menu.MaxHeight = 400);
}
}
}