Fix long messagebox text lines getting cut off

This commit is contained in:
n00mkrad
2026-01-14 15:43:01 +01:00
parent 09cef27e37
commit 02fced4503
2 changed files with 4 additions and 1 deletions

View File

@@ -36,6 +36,8 @@
//
// textLabel
//
this.textLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textLabel.AutoSize = true;
this.textLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textLabel.ForeColor = System.Drawing.Color.White;

View File

@@ -83,7 +83,8 @@ namespace Flowframes.Forms
Size labelSize = GetLabelSize(textLabel);
Size = new Size((labelSize.Width + 60).Clamp(360, Program.mainForm.Size.Width), (labelSize.Height + 120).Clamp(200, Program.mainForm.Size.Height));
textLabel.AutoSize = false;
textLabel.Size = new Size(Size.Width - 42, Size.Height - 100);
CenterToScreen();
}