Rename to scrollContentContainer.

This commit is contained in:
Huo Yaoyuan
2017-06-12 14:39:49 +08:00
parent d5dc37ec62
commit 915f61a8f7

View File

@ -18,9 +18,9 @@ namespace osu.Game.Graphics.Containers
private Drawable expandableHeader, fixedHeader, footer, headerBackground; private Drawable expandableHeader, fixedHeader, footer, headerBackground;
public readonly ScrollContainer ScrollContainer; public readonly ScrollContainer ScrollContainer;
private readonly Container headerBackgroundContainer; private readonly Container headerBackgroundContainer;
private readonly FlowContainer<T> sectionsContainer; private readonly FlowContainer<T> scrollContentContainer;
protected override Container<T> Content => sectionsContainer; protected override Container<T> Content => scrollContentContainer;
public Drawable ExpandableHeader public Drawable ExpandableHeader
{ {
@ -115,7 +115,7 @@ namespace osu.Game.Graphics.Containers
newMargin.Top += headerHeight; newMargin.Top += headerHeight;
newMargin.Bottom += footerHeight; newMargin.Bottom += footerHeight;
sectionsContainer.Margin = newMargin; scrollContentContainer.Margin = newMargin;
} }
public SectionsContainer() public SectionsContainer()
@ -124,7 +124,7 @@ namespace osu.Game.Graphics.Containers
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Masking = true, Masking = true,
Children = new Drawable[] { sectionsContainer = CreateScrollContentContainer() }, Children = new Drawable[] { scrollContentContainer = CreateScrollContentContainer() },
Depth = float.MaxValue Depth = float.MaxValue
}); });
AddInternal(headerBackgroundContainer = new Container AddInternal(headerBackgroundContainer = new Container
@ -132,7 +132,7 @@ namespace osu.Game.Graphics.Containers
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Depth = float.MaxValue / 2 Depth = float.MaxValue / 2
}); });
originalSectionsMargin = sectionsContainer.Margin; originalSectionsMargin = scrollContentContainer.Margin;
} }
private float lastKnownScroll; private float lastKnownScroll;