mirror of
https://github.com/ppy/osu
synced 2025-03-05 10:58:34 +00:00
Merge pull request #11703 from Joehuu/fix-timing-editor-attribute-column
Fix attributes header not being aligned with content in editor timing mode
This commit is contained in:
commit
7bc6010d90
@ -74,7 +74,8 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
{
|
||||
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 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
Text = group.Time.ToEditorFormattedString(),
|
||||
Font = OsuFont.GetFont(size: text_size, weight: FontWeight.Bold)
|
||||
},
|
||||
null,
|
||||
new ControlGroupAttributes(group),
|
||||
};
|
||||
|
||||
@ -104,11 +106,11 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
|
||||
public ControlGroupAttributes(ControlPointGroup group)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
InternalChild = fill = new FillFlowContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Direction = FillDirection.Horizontal,
|
||||
Padding = new MarginPadding(10),
|
||||
Spacing = new Vector2(2)
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user