1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

Use AutoSizeAxes

This commit is contained in:
C0D3 M4513R 2022-11-07 15:22:20 +01:00
parent 28ab092b6f
commit ab650d8a1b
No known key found for this signature in database
GPG Key ID: 3FF32B5F41A39834

View File

@ -64,6 +64,7 @@ namespace osu.Game.Skinning.Components
public BeatmapInfoDrawable()
{
AutoSizeAxes = Axes.Both;
InternalChildren = new Drawable[]
{
text = new OsuSpriteText
@ -104,8 +105,6 @@ namespace osu.Game.Skinning.Components
}
text.Text = newText;
Width = text.Width;
Height = text.Height;
}
public void UpdateBeatmapContent(WorkingBeatmap workingBeatmap)