add new test case and fix rotation not working

This commit is contained in:
jorolf
2018-04-16 19:22:11 +02:00
parent 046412f962
commit de9f15f620
4 changed files with 92 additions and 46 deletions

View File

@ -31,8 +31,6 @@ namespace osu.Game.Overlays.Profile.Header
{
Child = new Container
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Masking = true,
CornerRadius = 4,
AutoSizeAxes = Axes.Both,
@ -68,8 +66,6 @@ namespace osu.Game.Overlays.Profile.Header
AutoSizeAxes = Axes.Both,
Child = badgeFlowContainer = new FillFlowContainer
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Direction = FillDirection.Horizontal,
AutoSizeAxes = Axes.Both,
}
@ -114,6 +110,7 @@ namespace osu.Game.Overlays.Profile.Header
badgeCount = badges.Length;
visibleBadge = 0;
badgeFlowContainer.Clear();
foreach (var badge in badges)
{
LoadComponentAsync(new DrawableBadge(badge)