Move header height propagation to update for safety

This commit is contained in:
Dean Herbert 2020-10-13 16:35:06 +09:00
parent ded09b78cb
commit b536f571fd

View File

@ -89,10 +89,15 @@ namespace osu.Game.Screens.Select.Carousel
{
base.LoadComplete();
UpdateItem();
}
protected override void Update()
{
base.Update();
// avoid using fill flow for performance reasons. header size doesn't change after load.
Content.Y = Header.Height;
UpdateItem();
}
protected virtual void UpdateItem()