Use fixed width

This commit is contained in:
ansel 2022-11-30 13:11:54 +03:00
parent 4a747182b4
commit 956acbc86f
2 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ namespace osu.Game.Overlays.Comments
{ {
public CancelButton() public CancelButton()
{ {
Width = 90;
Height = 25; Height = 25;
AutoSizeAxes = Axes.X;
} }
protected override SpriteText CreateText() => new OsuSpriteText protected override SpriteText CreateText() => new OsuSpriteText

View File

@ -194,8 +194,8 @@ namespace osu.Game.Overlays.Comments
public EditorCommitButton() public EditorCommitButton()
{ {
Width = 90;
Height = 25; Height = 25;
AutoSizeAxes = Axes.X;
Add(spinner = new LoadingSpinner Add(spinner = new LoadingSpinner
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,