mirror of
https://github.com/ppy/osu.git
synced 2025-02-01 22:03:01 +08:00
Fix test scene potentially overflowing visible region
This commit is contained in:
parent
9c2494383f
commit
736965e009
@ -36,17 +36,16 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new FillFlowContainer<LevelBadge>
|
new FillFlowContainer<LevelBadge>
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Direction = FillDirection.Full,
|
||||||
|
Spacing = new Vector2(5),
|
||||||
|
ChildrenEnumerable = levels.Select(level => new LevelBadge
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
AutoSizeAxes = Axes.Y,
|
|
||||||
Direction = FillDirection.Horizontal,
|
|
||||||
Spacing = new Vector2(5),
|
|
||||||
ChildrenEnumerable = levels.Select(l => new LevelBadge
|
|
||||||
{
|
|
||||||
Size = new Vector2(60),
|
Size = new Vector2(60),
|
||||||
LevelInfo = { Value = l }
|
LevelInfo = { Value = level }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user