From 74466d96d72d1a50b56ff120bd78a8616ea78451 Mon Sep 17 00:00:00 2001 From: Chris Jakeman Date: Sun, 10 Dec 2023 16:08:49 +0000 Subject: [PATCH] fix: Menu update label positioned statically Was right-aligned by code and could also be partly hidden by "What's new?" label. --- Source/Menu/MainForm.Designer.cs | 6 ++---- Source/Menu/MainForm.cs | 5 ----- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Source/Menu/MainForm.Designer.cs b/Source/Menu/MainForm.Designer.cs index 81ef768ae5..76663bd221 100644 --- a/Source/Menu/MainForm.Designer.cs +++ b/Source/Menu/MainForm.Designer.cs @@ -845,13 +845,11 @@ private void InitializeComponent() // // linkLabelUpdate // - this.linkLabelUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.linkLabelUpdate.ImageAlign = System.Drawing.ContentAlignment.TopLeft; - this.linkLabelUpdate.Location = new System.Drawing.Point(457, 9); + this.linkLabelUpdate.Location = new System.Drawing.Point(400, 9); this.linkLabelUpdate.Name = "linkLabelUpdate"; this.linkLabelUpdate.Size = new System.Drawing.Size(200, 16); this.linkLabelUpdate.TabIndex = 37; - this.linkLabelUpdate.TextAlign = System.Drawing.ContentAlignment.TopRight; this.linkLabelUpdate.UseMnemonic = false; this.linkLabelUpdate.Visible = false; this.linkLabelUpdate.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelUpdate_LinkClicked); @@ -875,7 +873,7 @@ private void InitializeComponent() // this.linkLabelChangeLog.Location = new System.Drawing.Point(299, 9); this.linkLabelChangeLog.Name = "linkLabelChangeLog"; - this.linkLabelChangeLog.Size = new System.Drawing.Size(272, 16); + this.linkLabelChangeLog.Size = new System.Drawing.Size(100, 16); this.linkLabelChangeLog.TabIndex = 39; this.linkLabelChangeLog.TabStop = true; this.linkLabelChangeLog.Text = "What\'s new?"; diff --git a/Source/Menu/MainForm.cs b/Source/Menu/MainForm.cs index e33dc07119..d1aa04aab4 100644 --- a/Source/Menu/MainForm.cs +++ b/Source/Menu/MainForm.cs @@ -330,11 +330,6 @@ void CheckForUpdate() linkLabelUpdate.Image = ElevationIcon; else linkLabelUpdate.Image = null; - linkLabelUpdate.AutoSize = true; - linkLabelUpdate.Left = panelDetails.Right - linkLabelUpdate.Width - ElevationIcon.Width; - linkLabelUpdate.AutoSize = false; - linkLabelUpdate.Width = panelDetails.Right - linkLabelUpdate.Left; - linkLabelUpdate.Location = new System.Drawing.Point(700, 9); }); }