mirror of https://github.com/ppy/osu
Merge pull request #13996 from Joehuu/fix-settings-footer-ruleset-overflow
Fix ruleset icons overflowing from settings footer
This commit is contained in:
commit
47c9c9ab60
|
@ -24,7 +24,7 @@ private void load(OsuGameBase game, OsuColour colours, RulesetStore rulesets)
|
|||
RelativeSizeAxes = Axes.X;
|
||||
AutoSizeAxes = Axes.Y;
|
||||
Direction = FillDirection.Vertical;
|
||||
Padding = new MarginPadding { Top = 20, Bottom = 30 };
|
||||
Padding = new MarginPadding { Top = 20, Bottom = 30, Horizontal = SettingsPanel.CONTENT_MARGINS };
|
||||
|
||||
var modes = new List<Drawable>();
|
||||
|
||||
|
@ -32,6 +32,8 @@ private void load(OsuGameBase game, OsuColour colours, RulesetStore rulesets)
|
|||
{
|
||||
var icon = new ConstrainedIconContainer
|
||||
{
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Icon = ruleset.CreateInstance().CreateIcon(),
|
||||
Colour = Color4.Gray,
|
||||
Size = new Vector2(20),
|
||||
|
@ -47,7 +49,8 @@ private void load(OsuGameBase game, OsuColour colours, RulesetStore rulesets)
|
|||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Direction = FillDirection.Full,
|
||||
AutoSizeAxes = Axes.Both,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Children = modes,
|
||||
Spacing = new Vector2(5),
|
||||
Padding = new MarginPadding { Bottom = 10 },
|
||||
|
|
Loading…
Reference in New Issue