mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 15:12:57 +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
|
public class SpotlightSelector : Container
|
||||||
{
|
{
|
||||||
private readonly Box background;
|
private readonly Box background;
|
||||||
private readonly OsuDropdown<APISpotlight> dropdown;
|
private readonly SpotlightsDropdown dropdown;
|
||||||
private readonly DimmedLoadingLayer loading;
|
private readonly DimmedLoadingLayer loading;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
@ -32,7 +32,7 @@ namespace osu.Game.Overlays.Rankings
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
dropdown = new OsuDropdown<APISpotlight>
|
dropdown = new SpotlightsDropdown
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
@ -63,5 +63,10 @@ namespace osu.Game.Overlays.Rankings
|
|||||||
};
|
};
|
||||||
api.Queue(request);
|
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