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

Fix test scene potentially overflowing visible region

This commit is contained in:
Dean Herbert 2023-01-23 15:45:44 +09:00
parent 9c2494383f
commit 736965e009

View File

@ -37,16 +37,15 @@ namespace osu.Game.Tests.Visual.Online
{ {
new FillFlowContainer<LevelBadge> new FillFlowContainer<LevelBadge>
{ {
Anchor = Anchor.Centre, RelativeSizeAxes = Axes.Both,
Origin = Anchor.Centre, Direction = FillDirection.Full,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Horizontal,
Spacing = new Vector2(5), Spacing = new Vector2(5),
ChildrenEnumerable = levels.Select(l => new LevelBadge ChildrenEnumerable = levels.Select(level => new LevelBadge
{ {
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(60), Size = new Vector2(60),
LevelInfo = { Value = l } LevelInfo = { Value = level }
}) })
} }
}; };