Unity Issue Tracker - Text overflows its container with "auto" height when its alignment is justified
Fixed
UUM-66534
Text overflows its container with "auto" height when its alignment is justified
Unity: Text (TextCore)
Fixed
6.0.X
Won't Fix
2023.2.X
2023.2.0b1 onwards
Fixed text going out of bounds when using justified alignment.
Cancelling this 2023.2 tech release issue since the support for this release has come to end of life. Cancelling this 2023.2 port case does not affect any LTS or Unity 6 Beta/Preview that remain open.
Reproduction steps:
1. Open the attached “IN-70023 Text Overflow.zip“ project
2. Open the “NewUXMLTemplate.uxml” UI Document in the Project window (UI Builder window should open)
3. Select the “Label” element in the UI Builder Hierarchy
4. In the UI Builder Inspector, try adjusting the value of Size > Width (163 px should reproduce the issue)
Expected result: The text does not appear outside the borders of the “Label” element
Actual result: The text extends beyond the lower border of the “Label” element with certain widths