Rename to scrollContentContainer.

This commit is contained in:
Huo Yaoyuan 2017-06-12 14:39:49 +08:00
parent d5dc37ec62
commit 915f61a8f7
1 changed files with 5 additions and 5 deletions

View File

@ -18,9 +18,9 @@ public class SectionsContainer<T> : Container<T>
private Drawable expandableHeader, fixedHeader, footer, headerBackground;
public readonly ScrollContainer ScrollContainer;
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
{
@ -115,7 +115,7 @@ private void updateSectionsMargin()
newMargin.Top += headerHeight;
newMargin.Bottom += footerHeight;
sectionsContainer.Margin = newMargin;
scrollContentContainer.Margin = newMargin;
}
public SectionsContainer()
@ -124,7 +124,7 @@ public SectionsContainer()
{
RelativeSizeAxes = Axes.Both,
Masking = true,
Children = new Drawable[] { sectionsContainer = CreateScrollContentContainer() },
Children = new Drawable[] { scrollContentContainer = CreateScrollContentContainer() },
Depth = float.MaxValue
});
AddInternal(headerBackgroundContainer = new Container
@ -132,7 +132,7 @@ public SectionsContainer()
RelativeSizeAxes = Axes.X,
Depth = float.MaxValue / 2
});
originalSectionsMargin = sectionsContainer.Margin;
originalSectionsMargin = scrollContentContainer.Margin;
}
private float lastKnownScroll;