1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 17:13:06 +08:00

Use a relative width definition

This commit is contained in:
Dean Herbert 2017-06-15 14:36:41 +09:00
parent 63ca8a428d
commit 149eaa64de

View File

@ -113,13 +113,16 @@ namespace osu.Desktop.VisualTests.Tests
public TestDrawableHitObject(HitObject hitObject) public TestDrawableHitObject(HitObject hitObject)
: base(hitObject) : base(hitObject)
{ {
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Y;
RelativeSizeAxes = Axes.X;
RelativePositionAxes = Axes.Y; RelativePositionAxes = Axes.Y;
Y = (float)hitObject.StartTime; Y = (float)hitObject.StartTime;
Add(new Box Add(new Box
{ {
Size = new Vector2(100, 10) RelativeSizeAxes = Axes.X,
Height = 10,
}); });
} }
} }