From 5033526070bc84db3caab43e324f4555a476b68a Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Fri, 9 Jun 2017 13:37:55 +0800 Subject: [PATCH] Fix depth in SectiondContainer. --- osu.Game/Graphics/Containers/SectionsContainer.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/osu.Game/Graphics/Containers/SectionsContainer.cs b/osu.Game/Graphics/Containers/SectionsContainer.cs index fb88f842bd..99f43abe24 100644 --- a/osu.Game/Graphics/Containers/SectionsContainer.cs +++ b/osu.Game/Graphics/Containers/SectionsContainer.cs @@ -134,9 +134,14 @@ namespace osu.Game.Graphics.Containers { RelativeSizeAxes = Axes.Both, Masking = false, - Children = new Drawable[] { sectionsContainer = CreateScrollContentContainer() } + Children = new Drawable[] { sectionsContainer = CreateScrollContentContainer() }, + Depth = float.MaxValue + }); + Add(headerBackgroundContainer = new Container + { + RelativeSizeAxes = Axes.X, + Depth = float.MaxValue / 2 }); - Add(headerBackgroundContainer = new Container { RelativeSizeAxes = Axes.X }); originalSectionsMargin = sectionsContainer.Margin; }