Remove useless container

This commit is contained in:
Andrei Zavatski 2019-09-14 06:34:57 +03:00
parent 8ad782a82d
commit 2783ae62ef
1 changed files with 2 additions and 8 deletions

View File

@ -18,7 +18,6 @@ namespace osu.Game.Overlays.Rankings
public class RankingsHeader : CompositeDrawable public class RankingsHeader : CompositeDrawable
{ {
private const int content_height = 250; private const int content_height = 250;
private const int dropdown_height = 50;
public IEnumerable<Spotlight> Spotlights public IEnumerable<Spotlight> Spotlights
{ {
@ -85,20 +84,15 @@ public RankingsHeader()
Scope = { BindTarget = Scope }, Scope = { BindTarget = Scope },
Country = { BindTarget = Country }, Country = { BindTarget = Country },
}, },
new Container dropdown = new OsuDropdown<Spotlight>
{ {
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Height = dropdown_height,
Width = 0.8f, Width = 0.8f,
Child = dropdown = new OsuDropdown<Spotlight>
{
RelativeSizeAxes = Axes.X,
Current = Spotlight, Current = Spotlight,
} }
} }
}
}, },
} }
} }