mirror of
https://github.com/ppy/osu
synced 2025-01-19 12:30:50 +00:00
Move header height propagation to update for safety
This commit is contained in:
parent
ded09b78cb
commit
b536f571fd
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user