Fix incorrec nesting of manual input manager test containers

This commit is contained in:
Dean Herbert 2021-07-17 17:26:11 +09:00
parent 567a94a28b
commit 64cf9b702e
1 changed files with 10 additions and 4 deletions

View File

@ -35,10 +35,16 @@ protected OsuManualInputManagerTestScene()
{ {
MenuCursorContainer cursorContainer; MenuCursorContainer cursorContainer;
CompositeDrawable mainContent = CompositeDrawable mainContent = new PopoverContainer
new PopoverContainer { RelativeSizeAxes = Axes.Both } {
.WithChild(cursorContainer = new MenuCursorContainer { RelativeSizeAxes = Axes.Both }) RelativeSizeAxes = Axes.Both,
.WithChild(content = new OsuTooltipContainer(cursorContainer.Cursor) { RelativeSizeAxes = Axes.Both }); Child = cursorContainer = new MenuCursorContainer { RelativeSizeAxes = Axes.Both, }
};
cursorContainer.Child = content = new OsuTooltipContainer(cursorContainer.Cursor)
{
RelativeSizeAxes = Axes.Both
};
if (CreateNestedActionContainer) if (CreateNestedActionContainer)
{ {