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> /// </summary>
public partial class DrawableCollectionList : OsuRearrangeableListContainer<Live<BeatmapCollection>> 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(); protected override ScrollContainer<Drawable> CreateScrollContainer() => scroll = new Scroll();
[Resolved] [Resolved]

View File

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