Fix background input

This commit is contained in:
smoogipoo 2018-06-07 21:13:29 +09:00
parent d49758d149
commit 11f067d7d6
1 changed files with 6 additions and 2 deletions

View File

@ -65,9 +65,12 @@ public Column(ScrollingDirection direction = ScrollingDirection.Up)
Masking = true;
CornerRadius = 5;
InternalChildren = new Drawable[]
background = new ColumnBackground(direction) { RelativeSizeAxes = Axes.Both };
InternalChildren = new[]
{
background = new ColumnBackground(direction) { RelativeSizeAxes = Axes.Both },
// For input purposes, the background is added at the highest depth, but is then proxied back below all other elements
background.CreateProxy(),
new Container
{
Name = "Hit target + hit objects",
@ -158,6 +161,7 @@ public Column(ScrollingDirection direction = ScrollingDirection.Up)
}
}
},
background,
TopLevelContainer = new Container { RelativeSizeAxes = Axes.Both }
};