1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Fix settings item having zero height

This commit is contained in:
Bartłomiej Dach 2021-10-18 23:30:38 +02:00
parent cc9727ec11
commit 6d9d85685f
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
2 changed files with 8 additions and 4 deletions

View File

@ -115,13 +115,18 @@ namespace osu.Game.Overlays.Settings
{
Width = SettingsPanel.CONTENT_MARGINS,
},
FlowContent = new FillFlowContainer
new Container
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Left = SettingsPanel.CONTENT_MARGINS },
Spacing = new Vector2(0, 10),
Child = Control = CreateControl(),
Child = FlowContent = new FillFlowContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Spacing = new Vector2(0, 10),
Child = Control = CreateControl(),
}
}
};

View File

@ -17,7 +17,6 @@ namespace osu.Game.Screens.Play.PlayerSettings
protected override Drawable CreateControl() => new Sliderbar
{
Margin = new MarginPadding { Top = 5, Bottom = 5 },
RelativeSizeAxes = Axes.X
};