Expand statistics to fill more of the screen

This commit is contained in:
smoogipoo
2020-06-22 19:20:43 +09:00
parent 30aa6ec2d3
commit 988baad16f
4 changed files with 18 additions and 7 deletions

View File

@ -98,11 +98,17 @@ namespace osu.Game.Screens.Ranking.Statistics
{
rows.Add(new GridContainer
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Content = new[]
{
row.Columns?.Select(c => new StatisticContainer(c)).Cast<Drawable>().ToArray()
row.Columns?.Select(c => new StatisticContainer(c)
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
}).Cast<Drawable>().ToArray()
},
ColumnDimensions = Enumerable.Range(0, row.Columns?.Length ?? 0)
.Select(i => row.Columns[i].Dimension ?? new Dimension()).ToArray(),