1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

Add comment explaining the max width

This commit is contained in:
Joseph Madamba 2023-09-06 15:01:55 -07:00
parent 97bd90c0ff
commit d0780fb765
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -319,6 +319,8 @@ namespace osu.Game.Screens.Select
{ {
base.UpdateAfterChildren(); base.UpdateAfterChildren();
// best effort to confine the auto-sized text to wedge bounds
// the artist label doesn't have an extra text_margin as it doesn't touch the right metadata
TitleLabel.MaxWidth = DrawWidth - text_margin * 2 - shear_width; TitleLabel.MaxWidth = DrawWidth - text_margin * 2 - shear_width;
ArtistLabel.MaxWidth = DrawWidth - text_margin - shear_width; ArtistLabel.MaxWidth = DrawWidth - text_margin - shear_width;
} }