Fix statistics not being wrapped by containers

This commit is contained in:
smoogipoo
2020-06-19 20:53:43 +09:00
parent 34a8fcfd2f
commit 5ce2c712d3
5 changed files with 46 additions and 5 deletions

View File

@ -19,9 +19,13 @@ namespace osu.Game.Screens.Ranking.Statistics
public StatisticContainer(string name)
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
InternalChild = new GridContainer
{
RelativeSizeAxes = Axes.Both,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Content = new[]
{
new Drawable[]
@ -56,13 +60,15 @@ namespace osu.Game.Screens.Ranking.Statistics
{
content = new Container
{
RelativeSizeAxes = Axes.Both
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
}
},
},
RowDimensions = new[]
{
new Dimension(GridSizeMode.AutoSize),
new Dimension(GridSizeMode.AutoSize),
}
};
}