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; } } }