diff --git a/MiraAPI/Patches/RoleGuidePatches.cs b/MiraAPI/Patches/RoleGuidePatches.cs index 54df050..335be78 100644 --- a/MiraAPI/Patches/RoleGuidePatches.cs +++ b/MiraAPI/Patches/RoleGuidePatches.cs @@ -355,6 +355,8 @@ public static class RoleGuidePatches currentAdvancedTabObject.transform.SetParent(advancedWikiTab.Inner.transform); desc.transform.localPosition = new Vector3(0, 1.125f, 0); currentAdvancedTabObject.transform.localPosition = new Vector3(0f, 0f, 0f); + desc.ForceMeshUpdate(); + AdvancedWikiTab.SetYBoundsMax(Mathf.Clamp(desc.textBounds.size.y- 2, 0f, 999f)); } } diff --git a/MiraAPI/Roles/ICustomRole.cs b/MiraAPI/Roles/ICustomRole.cs index 817b209..3d9878a 100644 --- a/MiraAPI/Roles/ICustomRole.cs +++ b/MiraAPI/Roles/ICustomRole.cs @@ -328,6 +328,8 @@ public interface ICustomRole : IOptionable desc.alignment = TextAlignmentOptions.TopLeft; obj.transform.SetParent(parent.Inner.transform); desc.transform.localPosition = new Vector3(0, 1.125f, 0); + desc.ForceMeshUpdate(); + parent.SetYBoundsMax(Mathf.Clamp(desc.textBounds.size.y - 2, 0f, 999f)); return obj; }