Make ProfileHeaderButton height defined

This commit is contained in:
Andrei Zavatski 2021-01-21 22:56:12 +03:00
parent 0a69268567
commit 4555b9ff70
4 changed files with 1 additions and 3 deletions

View File

@ -72,7 +72,6 @@ namespace osu.Game.Overlays.Profile.Header
Width = UserProfileOverlay.CONTENT_X_MARGIN, Width = UserProfileOverlay.CONTENT_X_MARGIN,
Child = new ExpandDetailsButton Child = new ExpandDetailsButton
{ {
RelativeSizeAxes = Axes.Y,
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
DetailsVisible = { BindTarget = DetailsVisible } DetailsVisible = { BindTarget = DetailsVisible }

View File

@ -33,7 +33,6 @@ namespace osu.Game.Overlays.Profile.Header.Components
public MessageUserButton() public MessageUserButton()
{ {
Content.Alpha = 0; Content.Alpha = 0;
RelativeSizeAxes = Axes.Y;
Child = new SpriteIcon Child = new SpriteIcon
{ {

View File

@ -22,6 +22,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
protected ProfileHeaderButton() protected ProfileHeaderButton()
{ {
AutoSizeAxes = Axes.X; AutoSizeAxes = Axes.X;
Height = 40;
base.Content.Add(new CircularContainer base.Content.Add(new CircularContainer
{ {

View File

@ -16,7 +16,6 @@ namespace osu.Game.Overlays.Profile.Header.Components
protected ProfileHeaderStatisticsButton() protected ProfileHeaderStatisticsButton()
{ {
RelativeSizeAxes = Axes.Y;
Child = new FillFlowContainer Child = new FillFlowContainer
{ {
AutoSizeAxes = Axes.X, AutoSizeAxes = Axes.X,