Update judgement after children have been updated.

This commit is contained in:
Thomas Müller
2016-12-03 14:40:15 +01:00
parent b81bf7085f
commit 773d64cd5e
3 changed files with 5 additions and 5 deletions

View File

@ -106,9 +106,9 @@ namespace osu.Game.Overlays.Toolbar
private Cached activeMode = new Cached();
protected override void UpdateLayout()
protected override void UpdateAfterChildren()
{
base.UpdateLayout();
base.UpdateAfterChildren();
if (!activeMode.EnsureValid())
activeMode.Refresh(() => modeButtonLine.MoveToX(activeButton.DrawPosition.X, 200, EasingTypes.OutQuint));