mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Calculate content height automatically
This commit is contained in:
@ -20,6 +20,9 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
|
||||
public readonly CarouselHeader Header;
|
||||
|
||||
/// <summary>
|
||||
/// Optional content which sits below the header.
|
||||
/// </summary>
|
||||
protected readonly Container<Drawable> Content;
|
||||
|
||||
protected readonly Container MovementContainer;
|
||||
@ -89,6 +92,9 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
// avoid using fill flow for performance reasons. header size doesn't change after load.
|
||||
Content.Y = Header.Height;
|
||||
|
||||
UpdateItem();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user