2018-01-05 19:21:19 +08:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-04-18 21:35:21 +08:00
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
2017-04-11 13:01:13 +08:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Ranking
|
|
|
|
{
|
|
|
|
public class AspectContainer : Container
|
|
|
|
{
|
|
|
|
protected override void Update()
|
|
|
|
{
|
|
|
|
base.Update();
|
|
|
|
if (RelativeSizeAxes == Axes.X)
|
|
|
|
Height = DrawWidth;
|
|
|
|
else
|
|
|
|
Width = DrawHeight;
|
|
|
|
}
|
|
|
|
}
|
2018-01-05 19:21:19 +08:00
|
|
|
}
|