1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +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
parent fe2ca5cfef
commit 183777f8df
No known key found for this signature in database

View File

@ -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)
{