mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:43:21 +08: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();
|
base.LoadComplete();
|
||||||
|
|
||||||
|
UpdateItem();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Update()
|
||||||
|
{
|
||||||
|
base.Update();
|
||||||
|
|
||||||
// avoid using fill flow for performance reasons. header size doesn't change after load.
|
// avoid using fill flow for performance reasons. header size doesn't change after load.
|
||||||
Content.Y = Header.Height;
|
Content.Y = Header.Height;
|
||||||
|
|
||||||
UpdateItem();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void UpdateItem()
|
protected virtual void UpdateItem()
|
||||||
|
Loading…
Reference in New Issue
Block a user