mirror of https://github.com/ppy/osu
Use child instead of children
This commit is contained in:
parent
b6bc84af2c
commit
52f42ddade
|
@ -30,27 +30,24 @@ public DrawableChannel(Channel channel)
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
Children = new Drawable[]
|
Child = new OsuContextMenuContainer
|
||||||
{
|
{
|
||||||
new OsuContextMenuContainer
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Masking = true,
|
||||||
|
Child = scroll = new OsuScrollContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Masking = true,
|
// Some chat lines have effects that slightly protrude to the bottom,
|
||||||
Child = scroll = new OsuScrollContainer
|
// which we do not want to mask away, hence the padding.
|
||||||
|
Padding = new MarginPadding { Bottom = 5 },
|
||||||
|
Child = ChatLineFlow = new ChatLineContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
Padding = new MarginPadding { Left = 20, Right = 20 },
|
||||||
// Some chat lines have effects that slightly protrude to the bottom,
|
RelativeSizeAxes = Axes.X,
|
||||||
// which we do not want to mask away, hence the padding.
|
AutoSizeAxes = Axes.Y,
|
||||||
Padding = new MarginPadding { Bottom = 5 },
|
Direction = FillDirection.Vertical,
|
||||||
Child = ChatLineFlow = new ChatLineContainer
|
}
|
||||||
{
|
},
|
||||||
Padding = new MarginPadding { Left = 20, Right = 20 },
|
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
AutoSizeAxes = Axes.Y,
|
|
||||||
Direction = FillDirection.Vertical,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
newMessagesArrived(Channel.Messages);
|
newMessagesArrived(Channel.Messages);
|
||||||
|
|
Loading…
Reference in New Issue