mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
Fix incorrect text flow layout with non-left anchors when line breaks at last word of paragraph
Closes https://github.com/ppy/osu/issues/32861.
This commit is contained in:
@@ -567,7 +567,8 @@ namespace osu.Framework.Graphics.Containers
|
||||
|
||||
layoutPositions[i] = current;
|
||||
|
||||
rowWidths.Add(0);
|
||||
// DIFFERENCE: `FillFlowContainer` does 0 here, because it's tracking offsets *to middle*, not total row widths.
|
||||
rowWidths.Add(current.X + size.X);
|
||||
// DIFFERENCE: `IHasLineBaseHeight` tracking.
|
||||
lineBaseHeights.Add((c as IHasLineBaseHeight)?.LineBaseHeight ?? 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user