1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-06 21:02:59 +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] [BackgroundDependencyLoader]
private void load(OsuColour colours) private void load(OsuColour colours)
{ {
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Y;
InternalChildren = new Drawable[] InternalChildren = new Drawable[]
{ {
@ -153,6 +153,8 @@ namespace osu.Game.Screens.Play.HUD
{ {
Header.Font = OsuFont.GetFont(Font.Value, 12, FontWeight.Bold); Header.Font = OsuFont.GetFont(Font.Value, 12, FontWeight.Bold);
Header.Colour = HeaderColour.Value; Header.Colour = HeaderColour.Value;
Width = Header.DrawWidth;
} }
private partial class SpectatorListEntry : PoolableDrawable private partial class SpectatorListEntry : PoolableDrawable