Fix incorrect scaling of hitobjects in catch

This commit is contained in:
Dean Herbert
2018-01-04 16:28:36 +09:00
parent f45752c652
commit 152b846cff
2 changed files with 12 additions and 3 deletions

View File

@ -110,6 +110,12 @@ namespace osu.Game.Rulesets.UI
//dividing by the customwidth will effectively scale our content to the required container size.
protected override Vector2 DrawScale => CustomWidth.HasValue ? new Vector2(DrawSize.X / CustomWidth.Value) : base.DrawScale;
protected override void Update()
{
base.Update();
RelativeChildSize = new Vector2(DrawScale.X, base.RelativeChildSize.Y);
}
}
}
}