1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 11:30:04 +08:00

Fix sheared button getting cut when scaled beyond 100%

Keep masking back in `Content`, since the scaling animation is happening
on `Content` instead of `this`. This doesn't regress the intended
behaviour in this PR (which is to just to make the button class itself
sheared instead of its content).
This commit is contained in:
Salman Alshamrani
2025-04-29 04:16:28 +03:00
Unverified
parent 72987aa166
commit b4cf974662
@@ -89,11 +89,11 @@ namespace osu.Game.Graphics.UserInterface
{
Height = height;
CornerRadius = CORNER_RADIUS;
Shear = OsuGame.SHEAR;
Masking = true;
Content.Anchor = Content.Origin = Anchor.Centre;
Content.CornerRadius = CORNER_RADIUS;
Content.Masking = true;
Children = new Drawable[]
{