Don't go outside of the container bounds

This commit is contained in:
jorolf
2019-03-21 22:18:45 +01:00
parent f91e4a1fdd
commit 454c82c49e
2 changed files with 21 additions and 15 deletions

View File

@ -43,13 +43,16 @@ namespace osu.Game.Graphics.UserInterface
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;
InternalChildren = new Drawable[] InternalChildren = new Drawable[]
{
new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
Spacing = new Vector2(10, 0),
Children = new Drawable[]
{ {
iconSprite = new SpriteIcon iconSprite = new SpriteIcon
{ {
Size = new Vector2(25), Size = new Vector2(25),
Anchor = Anchor.TopLeft,
Origin = Anchor.TopRight,
Margin = new MarginPadding { Right = 10 },
}, },
new FillFlowContainer new FillFlowContainer
{ {
@ -68,6 +71,8 @@ namespace osu.Game.Graphics.UserInterface
} }
} }
} }
}
},
}; };
} }
} }

View File

@ -42,6 +42,7 @@ namespace osu.Game.Screens.Multi
{ {
Anchor = Anchor.CentreLeft, Anchor = Anchor.CentreLeft,
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,
X = -35,
}, },
breadcrumbs = new HeaderBreadcrumbControl(stack) breadcrumbs = new HeaderBreadcrumbControl(stack)
{ {