Skip to content

Commit 5883546

Browse files
committed
fix version label positioning (anchor doesn't appear to work, and the text doesn't render correctly if AutoSize isn't true -- no idea why, but it's WinForms, WinForms is terrible, why does Microsoft keep updating this thing?)
1 parent 6b278f0 commit 5883546

File tree

6 files changed

+19
-3
lines changed

6 files changed

+19
-3
lines changed

Intersect.Editor/Forms/frmAbout.Designer.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Intersect.Editor/Forms/frmAbout.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ private void InitLocalization()
2828
{
2929
Text = Strings.About.title;
3030
lblVersion.Text = Strings.About.version.ToString(Application.ProductVersion);
31+
lblVersion.Location = new System.Drawing.Point(
32+
(lblVersion.Parent?.ClientRectangle.Right - (lblVersion.Parent?.Padding.Right + lblVersion.Width + 4)) ?? 0,
33+
(lblVersion.Parent?.ClientRectangle.Bottom - (lblVersion.Parent?.Padding.Bottom + lblVersion.Height + 4)) ?? 0
34+
);
3135
lblWebsite.Text = Strings.About.site;
3236
}
3337

Intersect.Editor/Forms/frmLogin.Designer.cs

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Intersect.Editor/Forms/frmLogin.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ private void InitLocalization()
8282
{
8383
Text = Strings.Login.title;
8484
lblVersion.Text = Strings.Login.version.ToString(Application.ProductVersion);
85+
lblVersion.Location = new System.Drawing.Point(
86+
(lblVersion.Parent?.ClientRectangle.Right - (lblVersion.Parent?.Padding.Right + lblVersion.Width + 4)) ?? 0,
87+
(lblVersion.Parent?.ClientRectangle.Bottom - (lblVersion.Parent?.Padding.Bottom + lblVersion.Height + 4)) ?? 0
88+
);
8589
lblGettingStarted.Text = Strings.Login.gettingstarted;
8690
lblUsername.Text = Strings.Login.username;
8791
lblPassword.Text = Strings.Login.password;

Intersect.Editor/Forms/frmUpdate.Designer.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Intersect.Editor/Forms/frmUpdate.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ private void InitLocalization()
7979
{
8080
Text = Strings.Update.Title;
8181
lblVersion.Text = Strings.Login.version.ToString(Application.ProductVersion);
82+
lblVersion.Location = new System.Drawing.Point(
83+
(lblVersion.Parent?.ClientRectangle.Right - (lblVersion.Parent?.Padding.Right + lblVersion.Width + 4)) ?? 0,
84+
(lblVersion.Parent?.ClientRectangle.Bottom - (lblVersion.Parent?.Padding.Bottom + lblVersion.Height + 4)) ?? 0
85+
);
8286
lblStatus.Text = Strings.Update.Checking;
8387
}
8488

0 commit comments

Comments
 (0)