mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 04:32:55 +08:00
Reverse depth of profile sections to allow for overflowing expanded beatmap cards
Closes #21554.
This commit is contained in:
parent
0497e433b1
commit
62b0436bcf
@ -205,7 +205,9 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
protected override UserTrackingScrollContainer CreateScrollContainer() => new OverlayScrollContainer();
|
protected override UserTrackingScrollContainer CreateScrollContainer() => new OverlayScrollContainer();
|
||||||
|
|
||||||
protected override FlowContainer<ProfileSection> CreateScrollContentContainer() => new FillFlowContainer<ProfileSection>
|
// Reverse child ID is required so expanding beatmap panels can appear above sections below them.
|
||||||
|
// This can also be done by setting Depth when adding new sections above if using ReverseChildID turns out to have any issues.
|
||||||
|
protected override FlowContainer<ProfileSection> CreateScrollContentContainer() => new ReverseChildIDFillFlowContainer<ProfileSection>
|
||||||
{
|
{
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
|
Loading…
Reference in New Issue
Block a user