1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 21:27:24 +08:00

Simplify container structure and mention why a zero-size container is being used

This commit is contained in:
Dean Herbert 2023-09-12 15:53:27 +09:00
parent a6acd00908
commit 23521ad394

View File

@ -146,14 +146,8 @@ namespace osu.Game.Overlays.Profile.Header
},
new Container
{
Child = previousUsernamesDisplay = new PreviousUsernamesDisplay
{
Anchor = Anchor.TopLeft,
Origin = Anchor.TopLeft,
},
Anchor = Anchor.TopLeft,
Origin = Anchor.TopLeft,
Size = new Vector2(0),
// Intentionally use a zero-size container, else the fill flow will adjust to (and cancel) the upwards animation.
Child = previousUsernamesDisplay = new PreviousUsernamesDisplay(),
}
}
},