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

Inline single-frame layout issue comment instead

This commit is contained in:
Joseph Madamba 2024-08-14 00:41:43 -07:00
parent 2174510544
commit 11bd0c9a61

View File

@ -50,6 +50,8 @@ namespace osu.Game.Screens.SelectV2.Wedge
Text = " mapped by ",
Font = OsuFont.GetFont(size: 14),
},
// This is not a `LinkFlowContainer` as there are single-frame layout issues when Update()
// is being used for layout, see https://github.com/ppy/osu-framework/issues/3369.
MapperLink = new MapperLinkContainer
{
Anchor = Anchor.BottomLeft,
@ -73,10 +75,6 @@ namespace osu.Game.Screens.SelectV2.Wedge
- MapperName.DrawWidth, 0);
}
/// <summary>
/// This class is a workaround for the single-frame layout issues with `{Link|Text|Fill}FlowContainer`s.
/// See https://github.com/ppy/osu-framework/issues/3369.
/// </summary>
private partial class MapperLinkContainer : OsuHoverContainer
{
[BackgroundDependencyLoader]