Update ProfileHeader to the new design

This commit is contained in:
jorolf
2018-12-22 21:50:25 +01:00
parent 15ae0cd70a
commit 2fe80d5568
10 changed files with 480 additions and 635 deletions

View File

@ -141,6 +141,17 @@ namespace osu.Game.Graphics.Containers
public void ScrollToTop() => scrollContainer.ScrollTo(0);
public override void InvalidateFromChild(Invalidation invalidation, Drawable source = null)
{
base.InvalidateFromChild(invalidation, source);
if ((invalidation & Invalidation.DrawSize) != 0)
{
if (source == ExpandableHeader) //We need to recalculate the positions if the ExpandableHeader changed its size
lastKnownScroll = -1;
}
}
private float lastKnownScroll;
protected override void UpdateAfterChildren()
{