From 149eaa64de064b0dae3377953770cb9950ecd329 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 15 Jun 2017 14:36:41 +0900 Subject: [PATCH] Use a relative width definition --- .../Tests/TestCaseScrollingHitObjects.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/osu.Desktop.VisualTests/Tests/TestCaseScrollingHitObjects.cs b/osu.Desktop.VisualTests/Tests/TestCaseScrollingHitObjects.cs index a7e0fb699b..f0244504b2 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseScrollingHitObjects.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseScrollingHitObjects.cs @@ -113,13 +113,16 @@ namespace osu.Desktop.VisualTests.Tests public TestDrawableHitObject(HitObject hitObject) : base(hitObject) { - AutoSizeAxes = Axes.Both; + AutoSizeAxes = Axes.Y; + RelativeSizeAxes = Axes.X; RelativePositionAxes = Axes.Y; + Y = (float)hitObject.StartTime; Add(new Box { - Size = new Vector2(100, 10) + RelativeSizeAxes = Axes.X, + Height = 10, }); } }