1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:23:21 +08:00

Move horizontal padding to content level to better align scrollbar

This commit is contained in:
Dean Herbert 2022-05-10 17:23:12 +09:00
parent bcce9c5e67
commit e5204e565d
2 changed files with 21 additions and 19 deletions

View File

@ -33,7 +33,12 @@ namespace osu.Game.Overlays.FirstRunSetup
new OsuScrollContainer(Direction.Vertical) new OsuScrollContainer(Direction.Vertical)
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
ScrollbarOverlapsContent = false, Masking = false,
Child = new Container
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Horizontal = 30 },
Children = new Drawable[] Children = new Drawable[]
{ {
new OsuSpriteText new OsuSpriteText
@ -51,6 +56,7 @@ namespace osu.Game.Overlays.FirstRunSetup
Direction = FillDirection.Vertical, Direction = FillDirection.Vertical,
} }
}, },
},
} }
}; };
} }

View File

@ -118,11 +118,7 @@ namespace osu.Game.Overlays
new Container new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding Padding = new MarginPadding { Vertical = 20 },
{
Vertical = 20,
Horizontal = 20,
},
Child = screenContent = new Container { RelativeSizeAxes = Axes.Both, }, Child = screenContent = new Container { RelativeSizeAxes = Axes.Both, },
}, },
}, },