From 0a422ac35c36e4243d132d7d951ab596a5e574fb Mon Sep 17 00:00:00 2001 From: campbeb Date: Sun, 9 Apr 2017 19:35:52 -0400 Subject: [PATCH] AutoSize Greenshot forms Set AutoSize to true to ensure forms are properly displayed. Fixes #2406. --- Greenshot.ImageEditor/Forms/AboutForm.Designer.cs | 1 + Greenshot.ImageEditor/Forms/ColorDialog.Designer.cs | 1 + Greenshot.ImageEditor/Forms/DropShadowSettingsForm.Designer.cs | 1 + Greenshot.ImageEditor/Forms/EditorSettingsForm.Designer.cs | 1 + Greenshot.ImageEditor/Forms/ResizeSettingsForm.Designer.cs | 1 + Greenshot.ImageEditor/Forms/TornEdgeSettingsForm.Designer.cs | 1 + 6 files changed, 6 insertions(+) diff --git a/Greenshot.ImageEditor/Forms/AboutForm.Designer.cs b/Greenshot.ImageEditor/Forms/AboutForm.Designer.cs index 41873d743..8b39809f5 100644 --- a/Greenshot.ImageEditor/Forms/AboutForm.Designer.cs +++ b/Greenshot.ImageEditor/Forms/AboutForm.Designer.cs @@ -188,6 +188,7 @@ partial class AboutForm { // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.AutoSize = true; this.ClientSize = new System.Drawing.Size(530, 293); this.Controls.Add(this.lblTranslation); this.Controls.Add(this.linkLabel1); diff --git a/Greenshot.ImageEditor/Forms/ColorDialog.Designer.cs b/Greenshot.ImageEditor/Forms/ColorDialog.Designer.cs index ae24822f0..eb58ff33e 100644 --- a/Greenshot.ImageEditor/Forms/ColorDialog.Designer.cs +++ b/Greenshot.ImageEditor/Forms/ColorDialog.Designer.cs @@ -232,6 +232,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.AutoSize = true; this.ClientSize = new System.Drawing.Size(292, 218); this.Controls.Add(this.pipette); this.Controls.Add(this.btnApply); diff --git a/Greenshot.ImageEditor/Forms/DropShadowSettingsForm.Designer.cs b/Greenshot.ImageEditor/Forms/DropShadowSettingsForm.Designer.cs index 016d96fcb..277a47450 100644 --- a/Greenshot.ImageEditor/Forms/DropShadowSettingsForm.Designer.cs +++ b/Greenshot.ImageEditor/Forms/DropShadowSettingsForm.Designer.cs @@ -201,6 +201,7 @@ partial class DropShadowSettingsForm { this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoSize = true; this.CancelButton = this.buttonCancel; this.ClientSize = new System.Drawing.Size(230, 144); this.ControlBox = false; diff --git a/Greenshot.ImageEditor/Forms/EditorSettingsForm.Designer.cs b/Greenshot.ImageEditor/Forms/EditorSettingsForm.Designer.cs index e65002f20..99ea0b533 100644 --- a/Greenshot.ImageEditor/Forms/EditorSettingsForm.Designer.cs +++ b/Greenshot.ImageEditor/Forms/EditorSettingsForm.Designer.cs @@ -145,6 +145,7 @@ private void InitializeComponent() this.AcceptButton = this.btnOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoSize = true; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(330, 186); this.Controls.Add(this.cbMaximizeWhenLargeImage); diff --git a/Greenshot.ImageEditor/Forms/ResizeSettingsForm.Designer.cs b/Greenshot.ImageEditor/Forms/ResizeSettingsForm.Designer.cs index f60649699..4ee7444e7 100644 --- a/Greenshot.ImageEditor/Forms/ResizeSettingsForm.Designer.cs +++ b/Greenshot.ImageEditor/Forms/ResizeSettingsForm.Designer.cs @@ -142,6 +142,7 @@ partial class ResizeSettingsForm { this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoSize = true; this.CancelButton = this.buttonCancel; this.ClientSize = new System.Drawing.Size(244, 122); this.ControlBox = false; diff --git a/Greenshot.ImageEditor/Forms/TornEdgeSettingsForm.Designer.cs b/Greenshot.ImageEditor/Forms/TornEdgeSettingsForm.Designer.cs index eb0115b5e..efa0be88a 100644 --- a/Greenshot.ImageEditor/Forms/TornEdgeSettingsForm.Designer.cs +++ b/Greenshot.ImageEditor/Forms/TornEdgeSettingsForm.Designer.cs @@ -388,6 +388,7 @@ partial class TornEdgeSettingsForm { this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoSize = true; this.CancelButton = this.buttonCancel; this.ClientSize = new System.Drawing.Size(454, 224); this.ControlBox = false;