1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 15:33:05 +08:00

Fix layout not matching web

This commit is contained in:
Dean Herbert 2019-09-13 18:07:52 +09:00
parent 2c3f391b9e
commit 1e4f3507ed

View File

@ -20,7 +20,6 @@ namespace osu.Game.Overlays.Rankings
private const int content_height = 250;
private const int dropdown_height = 50;
private const int spacing = 20;
private const int title_offset = 30;
private const int duration = 200;
public IEnumerable<Spotlight> Spotlights
@ -68,27 +67,25 @@ namespace osu.Game.Overlays.Rankings
Masking = true,
Child = new HeaderBackground(),
},
new RankingsScopeSelector
{
Margin = new MarginPadding { Top = 10 },
Current = { BindTarget = Scope }
},
new FillFlowContainer
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Y = title_offset,
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
Direction = FillDirection.Vertical,
Spacing = new Vector2(0, spacing),
Children = new Drawable[]
{
new RankingsScopeSelector
{
Margin = new MarginPadding { Top = 10 },
Current = { BindTarget = Scope }
},
new HeaderTitle
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Scope = { BindTarget = Scope },
Margin = new MarginPadding { Top = 10 },
Country = { BindTarget = Country },
},
dropdownPlaceholder = new Container