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:
parent
05e725d59f
commit
d81d538b7e
@ -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[]
|
||||
|
@ -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 =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user