mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Fix vertical size potentially changing during relayout
This commit is contained in:
@ -14,7 +14,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
{
|
||||
public GameplayLeaderboard()
|
||||
{
|
||||
AutoSizeAxes = Axes.Both;
|
||||
Width = GameplayLeaderboardScore.EXTENDED_WIDTH;
|
||||
|
||||
Direction = FillDirection.Vertical;
|
||||
|
||||
@ -30,6 +30,8 @@ namespace osu.Game.Screens.Play.HUD
|
||||
base.Add(drawable);
|
||||
drawable.TotalScore.BindValueChanged(_ => Scheduler.AddOnce(sort), true);
|
||||
|
||||
Height = Count * (GameplayLeaderboardScore.PANEL_HEIGHT + Spacing.Y);
|
||||
|
||||
return drawable;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user