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

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()