mirror of https://github.com/ppy/osu
Remove useless container
This commit is contained in:
parent
8ad782a82d
commit
2783ae62ef
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue