1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 13:33:03 +08:00

Fix rooms scroll container not masking properly due to padding

This commit is contained in:
Salman Ahmed 2021-08-19 05:09:49 +03:00
parent ffbe8ddfa4
commit 0e2f3dff4d

View File

@ -86,20 +86,24 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
InternalChildren = new Drawable[] InternalChildren = new Drawable[]
{ {
ListingPollingComponent = CreatePollingComponent().With(c => c.Filter.BindTarget = filter), ListingPollingComponent = CreatePollingComponent().With(c => c.Filter.BindTarget = filter),
scrollContainer = new OsuScrollContainer new Container
{ {
Name = @"Scrollable rooms container", Name = @"Rooms area",
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding Padding = new MarginPadding
{ {
Horizontal = WaveOverlayContainer.WIDTH_PADDING, Horizontal = WaveOverlayContainer.WIDTH_PADDING,
Top = Header.HEIGHT + controls_area_height + 20, Top = Header.HEIGHT + controls_area_height + 20,
}, },
ScrollbarOverlapsContent = false, Child = scrollContainer = new OsuScrollContainer
Child = roomsContainer = new RoomsContainer
{ {
Filter = { BindTarget = filter } RelativeSizeAxes = Axes.Both,
} ScrollbarOverlapsContent = false,
Child = roomsContainer = new RoomsContainer
{
Filter = { BindTarget = filter }
}
},
}, },
loadingLayer = new LoadingLayer(true), loadingLayer = new LoadingLayer(true),
new FillFlowContainer new FillFlowContainer