1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-31 01:00:51 +08:00

Fix edge cases where selection buttons go outside playfield bounds

Addresses
https://github.com/ppy/osu/discussions/23599#discussioncomment-6300885.
This commit is contained in:
Bartłomiej Dach
2023-07-01 21:22:51 +02:00
Unverified
parent fe2ca5cfef
commit 183777f8df
@@ -381,6 +381,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
{
buttons.Anchor = Anchor.BottomCentre;
buttons.Origin = Anchor.BottomCentre;
buttons.Y = Math.Min(0, ToLocalSpace(Parent.ScreenSpaceDrawQuad.BottomLeft).Y - DrawHeight);
}
else if (topExcess > bottomExcess)
{