1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 18:53:21 +08:00

Fix random layout animations when loaded

This commit is contained in:
DrabWeb 2017-05-30 20:02:05 -03:00
parent b97691100f
commit d331aa3b30

View File

@ -185,7 +185,8 @@ namespace osu.Game.Screens.Multiplayer
}, },
new FillFlowContainer new FillFlowContainer
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.X,
Height = ruleset_height,
Direction = FillDirection.Horizontal, Direction = FillDirection.Horizontal,
LayoutDuration = transition_duration, LayoutDuration = transition_duration,
Spacing = new Vector2(5f, 0f), Spacing = new Vector2(5f, 0f),
@ -212,7 +213,7 @@ namespace osu.Game.Screens.Multiplayer
new Container new Container
{ {
AutoSizeAxes = Axes.X, AutoSizeAxes = Axes.X,
Height = ruleset_height, RelativeSizeAxes = Axes.Y,
Margin = new MarginPadding { Left = 5 }, Margin = new MarginPadding { Left = 5 },
Children = new[] Children = new[]
{ {
@ -389,9 +390,9 @@ namespace osu.Game.Screens.Multiplayer
beatmapBind.TriggerChange(); beatmapBind.TriggerChange();
} }
protected override void Update() protected override void UpdateAfterChildren()
{ {
base.Update(); base.UpdateAfterChildren();
participantsScroll.Height = DrawHeight - topFlow.DrawHeight; participantsScroll.Height = DrawHeight - topFlow.DrawHeight;
} }