1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 09:27:34 +08:00

Fix depth in SectiondContainer.

This commit is contained in:
Huo Yaoyuan 2017-06-09 13:37:55 +08:00
parent e3cdb9f6fe
commit 5033526070

View File

@ -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<Drawable>
{
RelativeSizeAxes = Axes.X,
Depth = float.MaxValue / 2
});
Add(headerBackgroundContainer = new Container<Drawable> { RelativeSizeAxes = Axes.X });
originalSectionsMargin = sectionsContainer.Margin;
}