Handle scrolling in SectionsContainer.

This commit is contained in:
Huo Yaoyuan
2017-06-25 10:06:54 +08:00
parent 674e2a4395
commit 18295a9b97
3 changed files with 19 additions and 10 deletions

View File

@ -112,7 +112,6 @@ namespace osu.Game.Overlays
RelativeSizeAxes = Axes.Both
}
};
sectionsContainer.ScrollContainer.ScrollbarVisible = false;
Add(sectionsContainer);
sectionsContainer.SelectedSection.ValueChanged += s =>
{
@ -135,7 +134,7 @@ namespace osu.Game.Overlays
if (lastSection != s)
{
lastSection = s;
sectionsContainer.ScrollContainer.ScrollIntoView(lastSection);
sectionsContainer.ScrollToTop(lastSection);
}
};