1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:47:24 +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:
Thomas Müller 2017-02-05 15:17:54 +01:00
parent 52f6a09319
commit ba38a27274
2 changed files with 2 additions and 3 deletions

@ -1 +1 @@
Subproject commit f9627494e444d8b35eb20d418539ada15f258c4d
Subproject commit 16dd98adffbfa8e555c5c5c3b04c755b51073ef2

View File

@ -17,8 +17,6 @@ namespace osu.Game.Overlays.Toolbar
public override bool Contains(Vector2 screenSpacePos) => true;
public override Vector2 Size => button.Size;
public ToolbarUserArea()
{
RelativeSizeAxes = Axes.Y;
@ -31,6 +29,7 @@ namespace osu.Game.Overlays.Toolbar
},
loginOverlay = new LoginOverlay
{
BypassAutoSizeAxes = Axes.Both,
Position = new Vector2(0, 1),
RelativePositionAxes = Axes.Y,
Anchor = Anchor.TopRight,