Fix layout not matching web

This commit is contained in:
Dean Herbert 2019-09-13 18:07:52 +09:00
parent 2c3f391b9e
commit 1e4f3507ed
1 changed files with 6 additions and 9 deletions

View File

@ -20,7 +20,6 @@ public class RankingsHeader : CompositeDrawable
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 @@ public RankingsHeader()
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