Ensure overlay containers scroll to top when new information is presented

This commit is contained in:
Dean Herbert
2017-11-15 19:01:30 +09:00
parent 530b1e8d91
commit af03d883f1
3 changed files with 7 additions and 1 deletions

View File

@ -139,6 +139,8 @@ namespace osu.Game.Graphics.Containers
public void ScrollTo(Drawable section) => scrollContainer.ScrollTo(scrollContainer.GetChildPosInContent(section) - (FixedHeader?.BoundingBox.Height ?? 0));
public void ScrollToTop() => scrollContainer.ScrollTo(0);
private float lastKnownScroll;
protected override void UpdateAfterChildren()
{