Use MaxWidth specification

This commit is contained in:
Dean Herbert 2019-09-09 12:08:59 +09:00
parent c6b8f2db77
commit eeebd517f3
1 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,7 @@ public class ChatLine : CompositeDrawable
protected virtual float MessagePadding => default_message_padding;
private const float timestamp_padding = 70;
private const float timestamp_padding = 65;
private const float default_horizontal_padding = 15;
@ -92,7 +92,9 @@ private void load(OsuColour colours)
Truncate = true,
EllipsisString = ".. :",
Font = OsuFont.GetFont(size: TextSize, weight: FontWeight.Bold, italics: true),
RelativeSizeAxes = Axes.Both,
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
MaxWidth = default_message_padding - timestamp_padding
};
if (hasBackground)