1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 07:23:14 +08:00

Fix toolbar music button tooltip overflowing off-screen

This commit is contained in:
Joehu 2020-08-06 01:20:03 -07:00
parent d574cac702
commit f9c369b23c

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Game.Input.Bindings; using osu.Game.Input.Bindings;
@ -9,6 +10,8 @@ namespace osu.Game.Overlays.Toolbar
{ {
public class ToolbarMusicButton : ToolbarOverlayToggleButton public class ToolbarMusicButton : ToolbarOverlayToggleButton
{ {
protected override Anchor TooltipAnchor => Anchor.TopRight;
public ToolbarMusicButton() public ToolbarMusicButton()
{ {
Icon = FontAwesome.Solid.Music; Icon = FontAwesome.Solid.Music;