Fix vertical size potentially changing during relayout

This commit is contained in:
Dean Herbert
2020-12-18 17:25:48 +09:00
parent e82986b763
commit 668536ce56
3 changed files with 12 additions and 9 deletions

View File

@ -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;
}