mirror of
https://github.com/ppy/osu
synced 2024-12-14 10:57:41 +00:00
Fix chat context menus displaying out-of-bounds
This commit is contained in:
parent
c3a257ea36
commit
b6bc84af2c
@ -32,16 +32,16 @@ namespace osu.Game.Overlays.Chat
|
|||||||
{
|
{
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
scroll = new OsuScrollContainer
|
new OsuContextMenuContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
// Some chat lines have effects that slightly protrude to the bottom,
|
Masking = true,
|
||||||
// which we do not want to mask away, hence the padding.
|
Child = scroll = new OsuScrollContainer
|
||||||
Padding = new MarginPadding { Bottom = 5 },
|
|
||||||
Child = new OsuContextMenuContainer
|
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.Both,
|
||||||
AutoSizeAxes = Axes.Y,
|
// 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 },
|
||||||
Child = ChatLineFlow = new ChatLineContainer
|
Child = ChatLineFlow = new ChatLineContainer
|
||||||
{
|
{
|
||||||
Padding = new MarginPadding { Left = 20, Right = 20 },
|
Padding = new MarginPadding { Left = 20, Right = 20 },
|
||||||
|
Loading…
Reference in New Issue
Block a user