mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09: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:
Submodule osu-framework updated: f9627494e4...16dd98adff
@ -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,
|
||||||
|
Reference in New Issue
Block a user