mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 19:27:31 +08:00
Use AutoSizeAxes
This commit is contained in:
parent
28ab092b6f
commit
ab650d8a1b
@ -64,6 +64,7 @@ namespace osu.Game.Skinning.Components
|
|||||||
|
|
||||||
public BeatmapInfoDrawable()
|
public BeatmapInfoDrawable()
|
||||||
{
|
{
|
||||||
|
AutoSizeAxes = Axes.Both;
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
text = new OsuSpriteText
|
text = new OsuSpriteText
|
||||||
@ -104,8 +105,6 @@ namespace osu.Game.Skinning.Components
|
|||||||
}
|
}
|
||||||
|
|
||||||
text.Text = newText;
|
text.Text = newText;
|
||||||
Width = text.Width;
|
|
||||||
Height = text.Height;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateBeatmapContent(WorkingBeatmap workingBeatmap)
|
public void UpdateBeatmapContent(WorkingBeatmap workingBeatmap)
|
||||||
|
Loading…
Reference in New Issue
Block a user