1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 00:03:08 +08:00

Avoid list width changing when spectator count changes

This commit is contained in:
Dean Herbert 2025-01-16 19:02:14 +09:00
parent 56dfe4a231
commit 996798d2df
No known key found for this signature in database

View File

@ -41,7 +41,7 @@ namespace osu.Game.Screens.Play.HUD
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
AutoSizeAxes = Axes.Both;
AutoSizeAxes = Axes.Y;
InternalChildren = new Drawable[]
{
@ -153,6 +153,8 @@ namespace osu.Game.Screens.Play.HUD
{
Header.Font = OsuFont.GetFont(Font.Value, 12, FontWeight.Bold);
Header.Colour = HeaderColour.Value;
Width = Header.DrawWidth;
}
private partial class SpectatorListEntry : PoolableDrawable