No longer broken

This commit is contained in:
JFronny 2020-06-12 18:24:35 +02:00
parent 9e6b441169
commit 30e27b9a21
1 changed files with 1 additions and 1 deletions

View File

@ -29,9 +29,9 @@ namespace CC_Functions.Commandline.TUI
/// <param name="color">Whether to use color when drawing</param>
public CenteredScreen(int width, int height, ConsoleColor contentBack, bool color = true) : base(width, height, color)
{
_titleLabel = new Label(Title);
ContentPanel = new Panel {BackColor = contentBack};
ActualSize = new Size(width, height);
_titleLabel = new Label(Title);
Controls.Add(ContentPanel);
Controls.Add(_titleLabel);
WindowResize += (screen, args) => CalculatePosition();