WPF layout (#3346)
This commit is contained in:
committed by
GitHub
parent
33d6975c25
commit
b898443f28
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user