Use correct x-axis margins

This commit is contained in:
TheWildTree
2020-02-29 15:19:36 +01:00
parent 0760ccf024
commit 520bbcf2e4
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation; using osu.Framework.Allocation;
@ -52,7 +52,7 @@ namespace osu.Game.Overlays.Rankings
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
Direction = FillDirection.Horizontal, Direction = FillDirection.Horizontal,
Spacing = new Vector2(10, 0), Spacing = new Vector2(10, 0),
Margin = new MarginPadding { Left = UserProfileOverlay.CONTENT_X_MARGIN }, Margin = new MarginPadding { Left = OverlayHeader.CONTENT_X_MARGIN },
Children = new Drawable[] Children = new Drawable[]
{ {
new OsuSpriteText new OsuSpriteText

View File

@ -64,7 +64,7 @@ namespace osu.Game.Overlays.Rankings
new Container new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Horizontal = UserProfileOverlay.CONTENT_X_MARGIN }, Padding = new MarginPadding { Horizontal = OverlayHeader.CONTENT_X_MARGIN },
Children = new Drawable[] Children = new Drawable[]
{ {
dropdown = new SpotlightsDropdown dropdown = new SpotlightsDropdown