add truncation to base class

This commit is contained in:
Max Hübner 2019-07-28 12:16:32 +02:00
parent c6d4ce0f8a
commit df8d4d8966
2 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,8 @@ public ChannelTabItem(Channel value)
Anchor = Anchor.CentreLeft,
Text = value.ToString(),
Font = OsuFont.GetFont(size: 18, weight: FontWeight.Bold)
Width = 115f,
Truncate = true,
},
CloseButton = new TabCloseButton
{

View File

@ -65,6 +65,8 @@ public PrivateChannelTabItem(Channel value)
Text.X = ChatOverlay.TAB_AREA_HEIGHT;
TextBold.X = ChatOverlay.TAB_AREA_HEIGHT;
Text.Width = 100f;
}
protected override bool ShowCloseOnHover => false;