1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:22:56 +08:00

Move out row anchor/origin set to one central place

This commit is contained in:
Bartłomiej Dach 2020-08-26 21:29:01 +02:00
parent 05e725d59f
commit d81d538b7e
2 changed files with 5 additions and 3 deletions

View File

@ -21,8 +21,6 @@ namespace osu.Game.Screens.Ranking.Statistics
public Drawable CreateDrawableStatisticRow() => new GridContainer
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Content = new[]

View File

@ -98,7 +98,11 @@ namespace osu.Game.Screens.Ranking.Statistics
rows.AddRange(newScore.Ruleset.CreateInstance()
.CreateStatisticsForScore(newScore, playableBeatmap)
.Select(row => row.CreateDrawableStatisticRow()));
.Select(row => row.CreateDrawableStatisticRow().With(r =>
{
r.Anchor = Anchor.TopCentre;
r.Origin = Anchor.TopCentre;
})));
LoadComponentAsync(rows, d =>
{