From c82f688adc0669fe0f1d3ae2ae7592dae0763e53 Mon Sep 17 00:00:00 2001 From: Jim Westfall Date: Wed, 5 Nov 2014 13:15:20 -0800 Subject: [PATCH] ui rendering fixes for progress window FrmProgressWindow.Designer.cs was setup for the windows being 591 wide, but rv was forcing it to be 498 when the window was brought up. This was confusing mono and it was causing rendering issues. This patch makes it so the Designer and rv agree on the width of the window. Additional adjustments were made to standardize the spacing between window edge/progress bar/button, resulting in a width of 511. --- ROMVault2/FrmProgressWindow.Designer.cs | 9 ++++----- ROMVault2/FrmProgressWindow.cs | 10 +++++----- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ROMVault2/FrmProgressWindow.Designer.cs b/ROMVault2/FrmProgressWindow.Designer.cs index f9b0d25..5f55b11 100644 --- a/ROMVault2/FrmProgressWindow.Designer.cs +++ b/ROMVault2/FrmProgressWindow.Designer.cs @@ -74,7 +74,7 @@ // // cancelButton // - this.cancelButton.Location = new System.Drawing.Point(420, 99); + this.cancelButton.Location = new System.Drawing.Point(424, 99); this.cancelButton.Name = "cancelButton"; this.cancelButton.Size = new System.Drawing.Size(75, 23); this.cancelButton.TabIndex = 2; @@ -123,7 +123,7 @@ this.ErrorGrid.ShowCellToolTips = false; this.ErrorGrid.ShowEditingIcon = false; this.ErrorGrid.ShowRowErrors = false; - this.ErrorGrid.Size = new System.Drawing.Size(591, 186); + this.ErrorGrid.Size = new System.Drawing.Size(511, 186); this.ErrorGrid.TabIndex = 6; this.ErrorGrid.SelectionChanged += new System.EventHandler(this.ErrorGridSelectionChanged); // @@ -165,7 +165,7 @@ // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.ErrorGrid); - this.splitContainer1.Size = new System.Drawing.Size(591, 320); + this.splitContainer1.Size = new System.Drawing.Size(511, 320); this.splitContainer1.SplitterDistance = 130; this.splitContainer1.TabIndex = 8; // @@ -184,9 +184,8 @@ // // FrmProgressWindow // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(591, 320); + this.ClientSize = new System.Drawing.Size(511, 320); this.Controls.Add(this.splitContainer1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FrmProgressWindow"; diff --git a/ROMVault2/FrmProgressWindow.cs b/ROMVault2/FrmProgressWindow.cs index 648712d..d725b25 100644 --- a/ROMVault2/FrmProgressWindow.cs +++ b/ROMVault2/FrmProgressWindow.cs @@ -26,7 +26,7 @@ namespace ROMVault2 _titleRoot = titleRoot; InitializeComponent(); - ClientSize = new Size(498, 131); + ClientSize = new Size(511, 131); _titleRoot = titleRoot; @@ -128,8 +128,8 @@ namespace ROMVault2 if (!_errorOpen) { _errorOpen = true; - ClientSize = new Size(498, 292); - MinimumSize = new Size(498, 292); + ClientSize = new Size(511, 292); + MinimumSize = new Size(511, 292); FormBorderStyle = FormBorderStyle.SizableToolWindow; } @@ -153,8 +153,8 @@ namespace ROMVault2 if (!_errorOpen) { _errorOpen = true; - ClientSize = new Size(498, 292); - MinimumSize = new Size(498, 292); + ClientSize = new Size(511, 292); + MinimumSize = new Size(511, 292); FormBorderStyle = FormBorderStyle.SizableToolWindow; }