Skip to content

Commit

Permalink
Improved "spacer items" centering
Browse files Browse the repository at this point in the history
  • Loading branch information
TomGrobbe committed Apr 6, 2018
1 parent 9de2eea commit 65ce0b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vMenu/CommonFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1823,9 +1823,9 @@ public UIMenuItem GetSpacerMenuItem(string title, string description = null)
{
string output = "~h~";
int length = title.Length;
int totalSize = 90 - int.Parse((length * 3).ToString());
int totalSize = 80 - length;

for (var i = 0; i < totalSize / 2; i++)
for (var i = 0; i < totalSize / 2 - (length / 2); i++)
{
output += " ";
}
Expand Down

0 comments on commit 65ce0b5

Please sign in to comment.