1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +08:00

Fix SongProgress invalidating too often

This regressed with https://github.com/ppy/osu/pull/19556. Rather than
try and figure whether that new container needs to handle size
differently, this is a simple solution.

Height was taken from a runtime check (maxes out at about 14.5).

Closes #20235.
This commit is contained in:
Dean Herbert 2022-09-12 20:06:52 +09:00
parent 00c9763d67
commit 2b4b14ca99

View File

@ -47,7 +47,10 @@ namespace osu.Game.Screens.Play.HUD
if (clock != null) if (clock != null)
gameplayClock = clock; gameplayClock = clock;
AutoSizeAxes = Axes.Y; // Lock height so changes in text autosize (if character height changes)
// don't cause parent invalidation.
Height = 14;
Children = new Drawable[] Children = new Drawable[]
{ {
new Container new Container