When a UMG Text widget is set to Auto Wrap and uses InvariantLeft or InvariantRight, the wrapped visual lines are positioned differently than expected compared to Left/Right.
In the current engine implementation, FTextLayout::JustifyLayout() computes LineJustificationWidth from LineView.JustificationWidth, but the conditional that switches to LineView.Size.X (to account for leftover whitespace from soft-wrapping) is only executed for Left and Right.
Licensee was suggested a workaround to modify FTextLayout::JustifyLayout() and add a similar consideration for LineJustificationWidth when InvariantLeft or InvariantRight is detected.
Reproduced in UE 5.5, 5.6, 5.7, and UE5-Main (CL 51069643).
1. Open the attached repro project.
2. Open the widget included in the project.
3. InvariantLeft/InvariantRight is set via PreConstruct.
Result: Wrapped lines are positioned incorrectly.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-367716 in the post.
| 0 |
| Component | UE - Editor - UI Systems |
|---|---|
| Affects Versions | 5.5, 5.6, 5.7, 5.8 |
| Created | Feb 26, 2026 |
|---|---|
| Updated | Feb 26, 2026 |