Remove no longer required context menu container in ParticipantsList

This commit is contained in:
Salman Ahmed 2022-07-08 01:42:55 +03:00
parent 7b08501eaf
commit 67fa15f231
2 changed files with 17 additions and 17 deletions

View File

@ -11,6 +11,7 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Framework.Testing; using osu.Framework.Testing;
using osu.Framework.Utils; using osu.Framework.Utils;
using osu.Game.Graphics.Cursor;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using osu.Game.Online; using osu.Game.Online;
using osu.Game.Online.API.Requests.Responses; using osu.Game.Online.API.Requests.Responses;
@ -370,12 +371,16 @@ namespace osu.Game.Tests.Visual.Multiplayer
{ {
ParticipantsList participantsList = null; ParticipantsList participantsList = null;
AddStep("create new list", () => Child = participantsList = new ParticipantsList AddStep("create new list", () => Child = new OsuContextMenuContainer
{
RelativeSizeAxes = Axes.Both,
Child = participantsList = new ParticipantsList
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
Size = new Vector2(380, 0.7f) Size = new Vector2(380, 0.7f)
}
}); });
AddUntilStep("wait for list to load", () => participantsList.IsLoaded); AddUntilStep("wait for list to load", () => participantsList.IsLoaded);

View File

@ -9,7 +9,6 @@ using osu.Framework.Allocation;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.Containers; using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Cursor;
using osuTK; using osuTK;
namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
@ -24,10 +23,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
InternalChild = new OsuContextMenuContainer InternalChild = new OsuScrollContainer
{
RelativeSizeAxes = Axes.Both,
Child = new OsuScrollContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
ScrollbarVisible = false, ScrollbarVisible = false,
@ -38,7 +34,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
Direction = FillDirection.Vertical, Direction = FillDirection.Vertical,
Spacing = new Vector2(0, 2) Spacing = new Vector2(0, 2)
} }
}
}; };
} }