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>
|
/// </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]
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue