2018-01-05 11:21:19 +00:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-04-18 13:35:21 +00:00
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
2017-04-11 05:01:13 +00: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 11:21:19 +00:00
|
|
|
}
|