Fix list overflowing subscreen background

This commit is contained in:
smoogipoo 2021-10-22 22:17:26 +09:00
parent a4397ee68c
commit 04b0529a7f

View File

@ -134,32 +134,27 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
new Drawable[] { new OverlinedHeader("Beatmap") }, new Drawable[] { new OverlinedHeader("Beatmap") },
new Drawable[] new Drawable[]
{ {
new FillFlowContainer addOrEditPlaylistButton = new PurpleTriangleButton
{
RelativeSizeAxes = Axes.X,
Height = 40,
Action = () =>
{
if (this.IsCurrentScreen())
this.Push(new MultiplayerMatchSongSelect(Room));
},
Alpha = 0
},
},
null,
new Drawable[]
{
new DrawableRoomPlaylist(false, false)
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Direction = FillDirection.Vertical, Items = { BindTarget = Room.Playlist },
Spacing = new Vector2(5), SelectedItem = { BindTarget = SelectedItem }
Children = new Drawable[] },
{
addOrEditPlaylistButton = new PurpleTriangleButton
{
RelativeSizeAxes = Axes.X,
Height = 40,
Action = () =>
{
if (this.IsCurrentScreen())
this.Push(new MultiplayerMatchSongSelect(Room));
},
Alpha = 0
},
new DrawableRoomPlaylist(false, false)
{
RelativeSizeAxes = Axes.Both,
Items = { BindTarget = Room.Playlist },
SelectedItem = { BindTarget = SelectedItem }
},
}
}
}, },
new[] new[]
{ {
@ -203,6 +198,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
RowDimensions = new[] RowDimensions = new[]
{ {
new Dimension(GridSizeMode.AutoSize), new Dimension(GridSizeMode.AutoSize),
new Dimension(GridSizeMode.AutoSize),
new Dimension(GridSizeMode.Absolute, 5),
new Dimension(), new Dimension(),
new Dimension(GridSizeMode.AutoSize), new Dimension(GridSizeMode.AutoSize),
} }