WPF layout (#3346)

This commit is contained in:
Pieter-Jan Briers
2021-02-21 12:38:56 +01:00
committed by GitHub
parent 33d6975c25
commit b898443f28
121 changed files with 1420 additions and 2069 deletions

View File

@@ -20,7 +20,7 @@ namespace Content.Client.UserInterface
};
AddChild(_panel);
SizeFlagsHorizontal = SizeFlags.None;
HorizontalAlignment = HAlignment.Left;
}
public string Text
@@ -28,15 +28,5 @@ namespace Content.Client.UserInterface
get => _label.Text;
set => _label.Text = value;
}
protected override Vector2 CalculateMinimumSize()
{
return _panel.CombinedMinimumSize;
}
protected override void LayoutUpdateOverride()
{
FitChildInBox(_panel, SizeBox);
}
}
}