diff --git a/osu.Game/Overlays/Direct/FilterControl.cs b/osu.Game/Overlays/Direct/FilterControl.cs index b35938f3a6..bdb880d5cc 100644 --- a/osu.Game/Overlays/Direct/FilterControl.cs +++ b/osu.Game/Overlays/Direct/FilterControl.cs @@ -21,6 +21,8 @@ namespace osu.Game.Overlays.Direct { public class FilterControl : Container { + public static readonly float HEIGHT = 35 + 32 + 30 + padding * 2; // search + mode toggle buttons + sort tabs + padding + /// /// The height of the content below the filter control (tab strip + result count text). /// @@ -50,7 +52,7 @@ namespace osu.Game.Overlays.Direct public FilterControl() { RelativeSizeAxes = Axes.X; - Height = 35 + 32 + 30 + padding * 2; // search + mode toggle buttons + sort tabs + padding + Height = HEIGHT; DisplayStyle.Value = PanelDisplayStyle.Grid; Children = new Drawable[] diff --git a/osu.Game/Overlays/DirectOverlay.cs b/osu.Game/Overlays/DirectOverlay.cs index c56d995c8a..284c13299c 100644 --- a/osu.Game/Overlays/DirectOverlay.cs +++ b/osu.Game/Overlays/DirectOverlay.cs @@ -77,24 +77,18 @@ namespace osu.Game.Overlays }, }, }, - new ScrollContainer + new Container { RelativeSizeAxes = Axes.Both, - ScrollDraggerVisible = false, - Padding = new MarginPadding { Top = Header.HEIGHT }, - Children = new Drawable[] + Padding = new MarginPadding { Top = Header.HEIGHT + FilterControl.HEIGHT }, + Children = new[] { - new ReverseDepthFillFlowContainer + new ScrollContainer { - RelativeSizeAxes = Axes.X, - AutoSizeAxes = Axes.Y, - Direction = FillDirection.Vertical, + RelativeSizeAxes = Axes.Both, + ScrollDraggerVisible = false, Children = new Drawable[] { - filter = new FilterControl - { - RelativeSizeAxes = Axes.X, - }, panels = new FillFlowContainer { RelativeSizeAxes = Axes.X, @@ -106,6 +100,11 @@ namespace osu.Game.Overlays }, }, }, + filter = new FilterControl + { + RelativeSizeAxes = Axes.X, + Margin = new MarginPadding { Top = Header.HEIGHT }, + }, header = new Header { RelativeSizeAxes = Axes.X,