From e97a154f30e211fa9ed8fa632e67e6674566c059 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Sun, 11 May 2025 09:22:22 +0200 Subject: [PATCH] workaround mono display bug in About dialog apparently under mono `LinkLabel` doesn't work properly with padding, so just remove it. --- src/BizHawk.Client.EmuHawk/BizBoxInfoControl.Designer.cs | 8 ++++---- src/BizHawk.Client.EmuHawk/BizBoxInfoControl.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/BizBoxInfoControl.Designer.cs b/src/BizHawk.Client.EmuHawk/BizBoxInfoControl.Designer.cs index 63bd3d1780..ce9a08409b 100644 --- a/src/BizHawk.Client.EmuHawk/BizBoxInfoControl.Designer.cs +++ b/src/BizHawk.Client.EmuHawk/BizBoxInfoControl.Designer.cs @@ -58,19 +58,19 @@ this.CorePortedLabel.Location = new System.Drawing.Point(140, 0); this.CorePortedLabel.Name = "CorePortedLabel"; this.CorePortedLabel.Padding = new System.Windows.Forms.Padding(5, 5, 0, 0); - this.CorePortedLabel.Text = ""; // // CoreUrlLink // this.CoreUrlLink.AutoSize = true; this.CoreUrlLink.Dock = System.Windows.Forms.DockStyle.Left; - this.CoreUrlLink.Location = new System.Drawing.Point(180, 0); + this.CoreUrlLink.Location = new System.Drawing.Point(145, 0); + this.CoreUrlLink.MinimumSize = new System.Drawing.Size(0, 23); this.CoreUrlLink.Name = "CoreUrlLink"; - this.CoreUrlLink.Padding = new System.Windows.Forms.Padding(5, 5, 0, 0); - this.CoreUrlLink.Size = new System.Drawing.Size(60, 18); + this.CoreUrlLink.Size = new System.Drawing.Size(55, 23); this.CoreUrlLink.TabIndex = 3; this.CoreUrlLink.TabStop = true; this.CoreUrlLink.Text = "linkLabel1"; + this.CoreUrlLink.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.CoreUrlLink.Visible = false; this.CoreUrlLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.CoreUrlLink_LinkClicked); // diff --git a/src/BizHawk.Client.EmuHawk/BizBoxInfoControl.cs b/src/BizHawk.Client.EmuHawk/BizBoxInfoControl.cs index ef30edafe5..b58d1d5a0a 100644 --- a/src/BizHawk.Client.EmuHawk/BizBoxInfoControl.cs +++ b/src/BizHawk.Client.EmuHawk/BizBoxInfoControl.cs @@ -23,7 +23,7 @@ namespace BizHawk.Client.EmuHawk if (attributes is PortedCoreAttribute ported) { - CorePortedLabel.Text = " (Ported)"; + CorePortedLabel.Text = "(Ported)"; _url = ported.PortedUrl; CoreUrlLink.Text = ported.PortedVersion; CoreUrlLink.Visible = true;