mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 20:42:54 +08:00
Migrate padding into the scroll content to not cut off effects
This commit is contained in:
parent
e58ea97604
commit
fce5a191f1
@ -29,6 +29,9 @@ namespace osu.Game.Overlays.Chat
|
|||||||
scroll = new OsuScrollContainer
|
scroll = new OsuScrollContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
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[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
flow = new FillFlowContainer<ChatLine>
|
flow = new FillFlowContainer<ChatLine>
|
||||||
|
@ -111,7 +111,7 @@ namespace osu.Game.Overlays
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Padding = new MarginPadding
|
Padding = new MarginPadding
|
||||||
{
|
{
|
||||||
Bottom = textbox_height + padding
|
Bottom = textbox_height
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
new Container
|
new Container
|
||||||
|
Loading…
Reference in New Issue
Block a user