fix plugin entry layout

This commit is contained in:
nothingTVatYT
2024-01-17 22:46:49 +01:00
parent 1094abce5a
commit 40e75465a3

View File

@@ -95,6 +95,7 @@ namespace FlaxEditor.Windows
Bounds = new Rectangle(nameLabel.X, tmp1, nameLabel.Width, Height - tmp1 - margin), Bounds = new Rectangle(nameLabel.X, tmp1, nameLabel.Width, Height - tmp1 - margin),
}; };
var xOffset = nameLabel.X + nameLabel.Width;
string versionString = string.Empty; string versionString = string.Empty;
if (desc.IsAlpha) if (desc.IsAlpha)
versionString = "ALPHA "; versionString = "ALPHA ";
@@ -109,7 +110,7 @@ namespace FlaxEditor.Windows
AnchorPreset = AnchorPresets.TopRight, AnchorPreset = AnchorPresets.TopRight,
Text = versionString, Text = versionString,
Parent = this, Parent = this,
Bounds = new Rectangle(Width - 140 - margin, margin, 140, 14), Bounds = new Rectangle(Width - 140 - margin - xOffset, margin, 140, 14),
}; };
string url = null; string url = null;
@@ -129,7 +130,7 @@ namespace FlaxEditor.Windows
AnchorPreset = AnchorPresets.TopRight, AnchorPreset = AnchorPresets.TopRight,
Text = desc.Author, Text = desc.Author,
Parent = this, Parent = this,
Bounds = new Rectangle(Width - authorWidth - margin, versionLabel.Bottom + margin, authorWidth, 14), Bounds = new Rectangle(Width - authorWidth - margin - xOffset, versionLabel.Bottom + margin, authorWidth, 14),
}; };
if (url != null) if (url != null)
{ {