mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:12:56 +08:00
Use a relative width definition
This commit is contained in:
parent
63ca8a428d
commit
149eaa64de
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user