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:
parent
03aea04a00
commit
698c1ef1ae
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user