Migrate padding into the scroll content to not cut off effects

This commit is contained in:
Thomas Müller 2017-07-18 12:26:27 +03:00
parent e58ea97604
commit fce5a191f1
2 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,9 @@ public DrawableChannel(Channel channel)
scroll = new OsuScrollContainer
{
RelativeSizeAxes = Axes.Both,
// Some chat lines have effects that slightly protrude to the bottom,
// which we do not want to mask away, hence the padding.
Padding = new MarginPadding { Bottom = 5 },
Children = new Drawable[]
{
flow = new FillFlowContainer<ChatLine>

View File

@ -111,7 +111,7 @@ public ChatOverlay()
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding
{
Bottom = textbox_height + padding
Bottom = textbox_height
},
},
new Container