Fix attributes header not being aligned with content in editor timing mode

This commit is contained in:
Joehu 2021-02-08 01:34:32 -08:00
parent 115ad4c745
commit 6b26a18a23
1 changed files with 3 additions and 2 deletions

View File

@ -74,7 +74,8 @@ private TableColumn[] createHeaders()
{
new TableColumn(string.Empty, Anchor.Centre, new Dimension(GridSizeMode.AutoSize)),
new TableColumn("Time", Anchor.Centre, new Dimension(GridSizeMode.AutoSize)),
new TableColumn("Attributes", Anchor.Centre),
new TableColumn(),
new TableColumn("Attributes", Anchor.CentreLeft),
};
return columns.ToArray();
@ -93,6 +94,7 @@ private TableColumn[] createHeaders()
Text = group.Time.ToEditorFormattedString(),
Font = OsuFont.GetFont(size: text_size, weight: FontWeight.Bold)
},
null,
new ControlGroupAttributes(group),
};
@ -108,7 +110,6 @@ public ControlGroupAttributes(ControlPointGroup group)
{
RelativeSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
Padding = new MarginPadding(10),
Spacing = new Vector2(2)
};