chore(NetworkInformationPreview): align values to labels better

This commit is contained in:
MrGadget 2024-04-02 00:47:25 -04:00
parent f5339c64f1
commit 64e3b0eba4

View File

@ -126,7 +126,9 @@ float DrawNetworkIdentityInfo(NetworkIdentity identity, float initialX, float Y)
Vector2 maxValueLabelSize = GetMaxNameLabelSize(infos); Vector2 maxValueLabelSize = GetMaxNameLabelSize(infos);
Rect labelRect = new Rect(initialX, Y, maxNameLabelSize.x, maxNameLabelSize.y); Rect labelRect = new Rect(initialX, Y, maxNameLabelSize.x, maxNameLabelSize.y);
Rect idLabelRect = new Rect(maxNameLabelSize.x, Y, maxValueLabelSize.x, maxValueLabelSize.y);
// height needs a +1 to line up nicely
Rect idLabelRect = new Rect(maxNameLabelSize.x, Y, maxValueLabelSize.x, maxValueLabelSize.y + 1);
foreach (NetworkIdentityInfo info in infos) foreach (NetworkIdentityInfo info in infos)
{ {