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:
@@ -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[]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user