Move padding outside of the UpdateStreamBadgeArea

This commit is contained in:
Andrei Zavatski 2020-02-27 14:47:31 +03:00
parent d92e93ed31
commit a8c31c31ad
2 changed files with 16 additions and 15 deletions

View File

@ -86,7 +86,17 @@ namespace osu.Game.Overlays.Changelog
{
RelativeSizeAxes = Axes.Both
},
Streams = new UpdateStreamBadgeArea(),
new Container
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding
{
Horizontal = 85,
Vertical = 20
},
Child = Streams = new UpdateStreamBadgeArea()
}
}
};

View File

@ -40,21 +40,12 @@ namespace osu.Game.Overlays.Changelog
base.OnHoverLost(e);
}
protected override TabFillFlowContainer CreateTabFlow()
protected override TabFillFlowContainer CreateTabFlow() => new TabFillFlowContainer
{
var flow = base.CreateTabFlow();
flow.RelativeSizeAxes = Axes.X;
flow.AutoSizeAxes = Axes.Y;
flow.AllowMultiline = true;
flow.Padding = new MarginPadding
{
Vertical = 20,
Horizontal = 85,
};
return flow;
}
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
AllowMultiline = true,
};
protected override Dropdown<APIUpdateStream> CreateDropdown() => null;