Fix not being able to scroll to new collection text box when list overflows

This commit is contained in:
Bartłomiej Dach 2024-11-18 15:28:30 +01:00
parent 5ce1f7679b
commit 22b082d968
No known key found for this signature in database
2 changed files with 11 additions and 3 deletions

View File

@ -21,6 +21,12 @@ namespace osu.Game.Collections
/// </summary>
public partial class DrawableCollectionList : OsuRearrangeableListContainer<Live<BeatmapCollection>>
{
public new MarginPadding Padding
{
get => base.Padding;
set => base.Padding = value;
}
protected override ScrollContainer<Drawable> CreateScrollContainer() => scroll = new Scroll();
[Resolved]

View File

@ -108,12 +108,10 @@ private void load(OsuColour colours)
RelativeSizeAxes = Axes.Both,
Colour = colours.GreySeaFoamDarker
},
new FillFlowContainer
new Container
{
RelativeSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
Padding = new MarginPadding(10),
Spacing = new Vector2(0, 10),
Children = new Drawable[]
{
searchTextBox = new BasicSearchTextBox
@ -127,6 +125,10 @@ private void load(OsuColour colours)
},
list = new DrawableCollectionList
{
Padding = new MarginPadding
{
Top = 60,
},
RelativeSizeAxes = Axes.Both,
}
}