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:
parent
97bd90c0ff
commit
d0780fb765
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user