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:
parent
d48b161662
commit
474d7e92d9
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user