Fix directory selector not masking properly

This commit is contained in:
Dean Herbert 2020-05-14 17:40:30 +09:00
parent 06f507496a
commit d04079f6ab

View File

@ -40,19 +40,25 @@ namespace osu.Game.Graphics.UserInterfaceV2
{ {
Padding = new MarginPadding(10); Padding = new MarginPadding(10);
InternalChildren = new Drawable[] InternalChild = new GridContainer
{
new FillFlowContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Direction = FillDirection.Vertical, RowDimensions = new[]
Children = new Drawable[] {
new Dimension(GridSizeMode.Absolute, 50),
new Dimension(),
},
Content = new[]
{
new Drawable[]
{ {
new CurrentDirectoryDisplay new CurrentDirectoryDisplay
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.Both,
Height = 50,
}, },
},
new Drawable[]
{
new OsuScrollContainer new OsuScrollContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
@ -65,7 +71,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
} }
} }
} }
}, }
}; };
CurrentDirectory.BindValueChanged(updateDisplay, true); CurrentDirectory.BindValueChanged(updateDisplay, true);