mirror of https://github.com/ppy/osu
Fix not being able to scroll to new collection text box when list overflows
This commit is contained in:
parent
5ce1f7679b
commit
22b082d968
|
@ -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]
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue