mirror of
https://github.com/ppy/osu
synced 2024-12-26 00:32:52 +00:00
Fix main menu button backgrounds not covering their entire width sometimes
I thought I had fixed this already once but it still looks broken. Basically when hovering over main menu buttons every now and then it will look like their backgrounds are not covering their entire width when they expand. The removed X position set looks wrong to me when inspecting the draw visualiser with the element because the element looks to be off centre horizontally, and removing it fixes that.
This commit is contained in:
parent
0a7336ef17
commit
50bd0897f6
@ -115,7 +115,6 @@ namespace osu.Game.Screens.Menu
|
||||
backgroundContent = CreateBackground(colour).With(bg =>
|
||||
{
|
||||
bg.RelativeSizeAxes = Axes.Y;
|
||||
bg.X = -ButtonSystem.WEDGE_WIDTH;
|
||||
bg.Anchor = Anchor.Centre;
|
||||
bg.Origin = Anchor.Centre;
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user