1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 03:15:36 +08:00

Fix width of toolbar buttons with text.

This commit is contained in:
Dean Herbert 2016-10-05 18:16:16 +09:00
parent 03aea04a00
commit 698c1ef1ae

View File

@ -153,6 +153,14 @@ namespace osu.Game.Overlays
};
}
protected override void Update()
{
base.Update();
//todo: find a way to avoid using this (autosize needs to be able to ignore certain drawables.. in this case the tooltip)
Size = new Vector2(WIDTH + DrawableText.Size.X, 1);
}
protected override bool OnClick(InputState state)
{
Action?.Invoke();