mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 17:27:48 +08:00
Simplify container structure and mention why a zero-size container is being used
This commit is contained in:
parent
a6acd00908
commit
23521ad394
@ -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(),
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user