1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 20:32:55 +08:00

Fix crappy resizing.

This commit is contained in:
smoogipooo 2017-08-25 16:27:01 +09:00
parent 9f02000174
commit 3ffc467704
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 2f0674792adaf123dcf44ea0099c5707df4a6d60
Subproject commit 56ce220e7f631ce2890597e505d073cdfc0233a1

View File

@ -25,7 +25,7 @@ namespace osu.Game.Graphics.UserInterface
protected override void UpdateMenuHeight()
{
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()