mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Fix incorrect sizing of login button.
When logging in or out the size of the login button would not correctly update, resulting in a messed-up flow of toolbar buttons. This branch fixes the problem by avoiding an invalidation-chain-breaking override of Size. Instead, the loginOverlay bypasses auto sizing by using a new framework feature.
This commit is contained in:
parent
52f6a09319
commit
ba38a27274
@ -1 +1 @@
|
|||||||
Subproject commit f9627494e444d8b35eb20d418539ada15f258c4d
|
Subproject commit 16dd98adffbfa8e555c5c5c3b04c755b51073ef2
|
@ -17,8 +17,6 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
|
|
||||||
public override bool Contains(Vector2 screenSpacePos) => true;
|
public override bool Contains(Vector2 screenSpacePos) => true;
|
||||||
|
|
||||||
public override Vector2 Size => button.Size;
|
|
||||||
|
|
||||||
public ToolbarUserArea()
|
public ToolbarUserArea()
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Y;
|
RelativeSizeAxes = Axes.Y;
|
||||||
@ -31,6 +29,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
},
|
},
|
||||||
loginOverlay = new LoginOverlay
|
loginOverlay = new LoginOverlay
|
||||||
{
|
{
|
||||||
|
BypassAutoSizeAxes = Axes.Both,
|
||||||
Position = new Vector2(0, 1),
|
Position = new Vector2(0, 1),
|
||||||
RelativePositionAxes = Axes.Y,
|
RelativePositionAxes = Axes.Y,
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
|
Loading…
Reference in New Issue
Block a user