mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Remove FixedWidth
and add AutoSizeAxes
specs to all usages
This commit is contained in:
@ -28,6 +28,7 @@ namespace osu.Game.Tests.Visual.Beatmaps
|
||||
Spacing = new Vector2(0, 10),
|
||||
ChildrenEnumerable = Enum.GetValues(typeof(BeatmapSetOnlineStatus)).Cast<BeatmapSetOnlineStatus>().Select(status => new BeatmapSetOnlineStatusPill
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Status = status
|
||||
@ -41,8 +42,12 @@ namespace osu.Game.Tests.Visual.Beatmaps
|
||||
{
|
||||
AddStep("create themed content", () => CreateThemedContent(OverlayColourScheme.Red));
|
||||
|
||||
AddStep("set fixed width", () => statusPills.ForEach(pill => pill.FixedWidth = 90));
|
||||
AddStep("unset fixed width", () => statusPills.ForEach(pill => pill.FixedWidth = null));
|
||||
AddStep("set fixed width", () => statusPills.ForEach(pill =>
|
||||
{
|
||||
pill.AutoSizeAxes = Axes.Y;
|
||||
pill.Width = 90;
|
||||
}));
|
||||
AddStep("unset fixed width", () => statusPills.ForEach(pill => pill.AutoSizeAxes = Axes.Both));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user