mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-02-24 04:00:49 +01:00
Fix long messagebox text lines getting cut off
This commit is contained in:
2
CodeLegacy/Forms/MessageForm.Designer.cs
generated
2
CodeLegacy/Forms/MessageForm.Designer.cs
generated
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user