Description

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).

Steps to Reproduce

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.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-367716 in the post.

0
Login to Vote

Unresolved
ComponentUE - Editor - UI Systems
Affects Versions5.55.65.75.8
CreatedFeb 26, 2026
UpdatedFeb 26, 2026
View Jira Issue