mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:12:54 +08:00
Fix crappy resizing.
This commit is contained in:
parent
9f02000174
commit
3ffc467704
@ -1 +1 @@
|
|||||||
Subproject commit 2f0674792adaf123dcf44ea0099c5707df4a6d60
|
Subproject commit 56ce220e7f631ce2890597e505d073cdfc0233a1
|
@ -25,7 +25,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
protected override void UpdateMenuHeight()
|
protected override void UpdateMenuHeight()
|
||||||
{
|
{
|
||||||
var actualHeight = (RelativeSizeAxes & Axes.Y) > 0 ? 1 : ContentHeight;
|
var actualHeight = (RelativeSizeAxes & Axes.Y) > 0 ? 1 : ContentHeight;
|
||||||
this.ResizeTo(new Vector2(1, State == MenuState.Opened ? actualHeight : 0), 300, Easing.OutQuint);
|
this.ResizeHeightTo(State == MenuState.Opened ? actualHeight : 0, 300, Easing.OutQuint);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override FlowContainer<MenuItemRepresentation> CreateItemsFlow()
|
protected override FlowContainer<MenuItemRepresentation> CreateItemsFlow()
|
||||||
|
Loading…
Reference in New Issue
Block a user