mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 12:32:58 +08:00
Fix skin editor component list having uneven padding
This commit is contained in:
parent
2ba90b5447
commit
b19047b90b
@ -40,7 +40,7 @@ namespace osu.Game.Overlays.SkinEditor
|
|||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
Spacing = new Vector2(2)
|
Spacing = new Vector2(EditorSidebar.PADDING)
|
||||||
};
|
};
|
||||||
|
|
||||||
reloadComponents();
|
reloadComponents();
|
||||||
|
@ -18,6 +18,8 @@ namespace osu.Game.Screens.Edit.Components
|
|||||||
{
|
{
|
||||||
public const float WIDTH = 250;
|
public const float WIDTH = 250;
|
||||||
|
|
||||||
|
public const float PADDING = 3;
|
||||||
|
|
||||||
private readonly Box background;
|
private readonly Box background;
|
||||||
|
|
||||||
protected override Container<EditorSidebarSection> Content { get; }
|
protected override Container<EditorSidebarSection> Content { get; }
|
||||||
@ -35,13 +37,13 @@ namespace osu.Game.Screens.Edit.Components
|
|||||||
},
|
},
|
||||||
new OsuScrollContainer
|
new OsuScrollContainer
|
||||||
{
|
{
|
||||||
Padding = new MarginPadding { Left = 20 },
|
|
||||||
ScrollbarOverlapsContent = false,
|
ScrollbarOverlapsContent = false,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Child = Content = new FillFlowContainer<EditorSidebarSection>
|
Child = Content = new FillFlowContainer<EditorSidebarSection>
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
|
Padding = new MarginPadding(PADDING),
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user