mirror of
https://github.com/ppy/osu.git
synced 2024-09-21 22:07:25 +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
|
new Container
|
||||||
{
|
{
|
||||||
Child = previousUsernamesDisplay = new PreviousUsernamesDisplay
|
// Intentionally use a zero-size container, else the fill flow will adjust to (and cancel) the upwards animation.
|
||||||
{
|
Child = previousUsernamesDisplay = new PreviousUsernamesDisplay(),
|
||||||
Anchor = Anchor.TopLeft,
|
|
||||||
Origin = Anchor.TopLeft,
|
|
||||||
},
|
|
||||||
Anchor = Anchor.TopLeft,
|
|
||||||
Origin = Anchor.TopLeft,
|
|
||||||
Size = new Vector2(0),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user