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:
parent
56dfe4a231
commit
996798d2df
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user