From 22b082d968d7d4179de0d0350867a0c0f187f377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Mon, 18 Nov 2024 15:28:30 +0100 Subject: [PATCH] Fix not being able to scroll to new collection text box when list overflows --- osu.Game/Collections/DrawableCollectionList.cs | 6 ++++++ osu.Game/Collections/ManageCollectionsDialog.cs | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/osu.Game/Collections/DrawableCollectionList.cs b/osu.Game/Collections/DrawableCollectionList.cs index f00691ba0f..85af1d383d 100644 --- a/osu.Game/Collections/DrawableCollectionList.cs +++ b/osu.Game/Collections/DrawableCollectionList.cs @@ -21,6 +21,12 @@ namespace osu.Game.Collections /// public partial class DrawableCollectionList : OsuRearrangeableListContainer> { + public new MarginPadding Padding + { + get => base.Padding; + set => base.Padding = value; + } + protected override ScrollContainer CreateScrollContainer() => scroll = new Scroll(); [Resolved] diff --git a/osu.Game/Collections/ManageCollectionsDialog.cs b/osu.Game/Collections/ManageCollectionsDialog.cs index 90b73bc6b2..a738ae66cb 100644 --- a/osu.Game/Collections/ManageCollectionsDialog.cs +++ b/osu.Game/Collections/ManageCollectionsDialog.cs @@ -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, } }