1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 16:42:57 +08:00

Move scroll view padding to content level

Without doing this, there is a non-masked but also non-interactive area
to the left or right of the view.
This commit is contained in:
Dean Herbert 2022-04-05 16:39:02 +09:00
parent 29b7460cc7
commit 23dad7bdc4

View File

@ -100,7 +100,6 @@ namespace osu.Game.Overlays.Mods
{
RelativeSizeAxes = Axes.Both,
RelativePositionAxes = Axes.Both,
Padding = new MarginPadding { Horizontal = 70 },
Children = new Drawable[]
{
new OsuScrollContainer(Direction.Horizontal)
@ -113,6 +112,7 @@ namespace osu.Game.Overlays.Mods
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
Spacing = new Vector2(10, 0),
Margin = new MarginPadding { Horizontal = 70 },
Children = new[]
{
new ModColumn(ModType.DifficultyReduction, false, new[] { Key.Q, Key.W, Key.E, Key.R, Key.T, Key.Y, Key.U, Key.I, Key.O, Key.P }),