Skip to content

Commit

Permalink
Fix not being able to scroll to new collection text box when list ove…
Browse files Browse the repository at this point in the history
…rflows
  • Loading branch information
bdach committed Nov 18, 2024
1 parent 5ce1f76 commit 22b082d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions osu.Game/Collections/DrawableCollectionList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 5 additions & 3 deletions osu.Game/Collections/ManageCollectionsDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -127,6 +125,10 @@ private void load(OsuColour colours)
},
list = new DrawableCollectionList
{
Padding = new MarginPadding
{
Top = 60,
},
RelativeSizeAxes = Axes.Both,
}
}
Expand Down

0 comments on commit 22b082d

Please sign in to comment.