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

Fix layout in MatchPairing test case

This commit is contained in:
Dean Herbert 2018-09-21 18:52:00 +09:00
parent ffadd5dfd0
commit 0076ef3447

View File

@ -47,14 +47,16 @@ namespace osu.Game.Tournament.Tests
}
);
Child = new Container
Child = new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
RelativeSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
Children = new Drawable[]
{
level1 = new Container<DrawableMatchPairing>
level1 = new FillFlowContainer<DrawableMatchPairing>
{
AutoSizeAxes = Axes.Both,
AutoSizeAxes = Axes.X,
Direction = FillDirection.Vertical,
Children = new[]
{
new DrawableMatchPairing(pairing1),
@ -62,9 +64,10 @@ namespace osu.Game.Tournament.Tests
new DrawableMatchPairing(new MatchPairing()),
}
},
level2 = new Container<DrawableMatchPairing>
level2 = new FillFlowContainer<DrawableMatchPairing>
{
AutoSizeAxes = Axes.Both,
AutoSizeAxes = Axes.X,
Direction = FillDirection.Vertical,
Margin = new MarginPadding(20),
Children = new[]
{