From 3a151c1d2c68872bedc1f9602dab0a69fdcf56ec Mon Sep 17 00:00:00 2001 From: James Frowen Date: Wed, 21 Aug 2024 18:58:39 +0100 Subject: [PATCH] fix: stopping message name from overflowing --- Assets/Mirage.Profiler/Editor/Table/LabelRow.cs | 3 +++ Assets/Mirage.Profiler/Editor/Table/Row.cs | 1 + 2 files changed, 4 insertions(+) diff --git a/Assets/Mirage.Profiler/Editor/Table/LabelRow.cs b/Assets/Mirage.Profiler/Editor/Table/LabelRow.cs index 429128a..c4c98c5 100644 --- a/Assets/Mirage.Profiler/Editor/Table/LabelRow.cs +++ b/Assets/Mirage.Profiler/Editor/Table/LabelRow.cs @@ -38,6 +38,9 @@ protected static void SetLabelStyle(ColumnInfo column, Label label) style.borderBottomColor = Color.white * .4f; style.borderBottomWidth = 1; style.borderRightWidth = 2; + + style.overflow = Overflow.Hidden; + style.textOverflow = TextOverflow.Ellipsis; } public override Label GetLabel(ColumnInfo column) diff --git a/Assets/Mirage.Profiler/Editor/Table/Row.cs b/Assets/Mirage.Profiler/Editor/Table/Row.cs index 74f7ba7..f5a0965 100644 --- a/Assets/Mirage.Profiler/Editor/Table/Row.cs +++ b/Assets/Mirage.Profiler/Editor/Table/Row.cs @@ -40,6 +40,7 @@ public void SetText(ColumnInfo column, string text) { var label = GetLabel(column); label.text = text; + label.tooltip = text; } } }