1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Adjust layout slightly to avoid specifying width twice

This commit is contained in:
Bartłomiej Dach 2020-11-03 19:03:48 +01:00
parent 1b2bd6a8c9
commit 86d283ebf4

View File

@ -103,20 +103,21 @@ namespace osu.Game.Overlays.Dashboard
{ {
new FillFlowContainer new FillFlowContainer
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical, Direction = FillDirection.Vertical,
Spacing = new Vector2(2), Spacing = new Vector2(2),
Width = 290,
Children = new Drawable[] Children = new Drawable[]
{ {
new UserGridPanel(user) new UserGridPanel(user)
{ {
Width = 290, RelativeSizeAxes = Axes.X,
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
}, },
new PurpleTriangleButton new PurpleTriangleButton
{ {
Width = 290, RelativeSizeAxes = Axes.X,
Text = "Watch", Text = "Watch",
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,