diff --git a/osu.Game/GameModes/Play/BeatmapButton.cs b/osu.Game/GameModes/Play/BeatmapButton.cs index 377ec9099f..5182fe71cb 100644 --- a/osu.Game/GameModes/Play/BeatmapButton.cs +++ b/osu.Game/GameModes/Play/BeatmapButton.cs @@ -28,6 +28,8 @@ namespace osu.Game.GameModes.Play { this.beatmapSet = set; this.beatmap = beatmap; + RelativeSizeAxes = Axes.X; + Size = new Vector2(1, 0); Children = new Drawable[] { new Box diff --git a/osu.Game/GameModes/Play/BeatmapGroup.cs b/osu.Game/GameModes/Play/BeatmapGroup.cs index 17952c7e42..752e6fe940 100644 --- a/osu.Game/GameModes/Play/BeatmapGroup.cs +++ b/osu.Game/GameModes/Play/BeatmapGroup.cs @@ -55,16 +55,22 @@ namespace osu.Game.GameModes.Play { BeatmapSet = beatmapSet; Alpha = collapsedAlpha; + RelativeSizeAxes = Axes.X; + Size = new Vector2(1, 0); Children = new[] { topContainer = new FlowContainer { + RelativeSizeAxes = Axes.X, + Size = new Vector2(1, 0), Direction = FlowDirection.VerticalOnly, Children = new[] { new BeatmapSetBox(beatmapSet) } } }; difficulties = new FlowContainer // Deliberately not added to children { + RelativeSizeAxes = Axes.X, + Size = new Vector2(1, 0), Margin = new MarginPadding { Top = 5 }, Padding = new MarginPadding { Left = 25 }, Spacing = new Vector2(0, 5), @@ -88,6 +94,8 @@ namespace osu.Game.GameModes.Play public BeatmapSetBox(BeatmapSet beatmapSet) { this.beatmapSet = beatmapSet; + RelativeSizeAxes = Axes.X; + Size = new Vector2(1, 0); Children = new Drawable[] { new Box diff --git a/osu.Game/GameModes/Play/PlaySongSelect.cs b/osu.Game/GameModes/Play/PlaySongSelect.cs index d371689e7f..3f943c07a9 100644 --- a/osu.Game/GameModes/Play/PlaySongSelect.cs +++ b/osu.Game/GameModes/Play/PlaySongSelect.cs @@ -81,12 +81,13 @@ namespace osu.Game.GameModes.Play RelativePositionAxes = Axes.Both, Size = new Vector2(0.5f, 1), Position = new Vector2(0.5f, 0), - Children = new[] + Children = new Drawable[] { setList = new FlowContainer { + RelativeSizeAxes = Axes.X, + Size = new Vector2(1, 0), Direction = FlowDirection.VerticalOnly, - Padding = new MarginPadding(25), Spacing = new Vector2(0, 25), } }