Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X

Votes

0

Found in

2021.3.34f1

2022.3.17f1

2023.2.6f1

2023.3.0b3

Issue ID

UUM-61751

Regression

No

[TextMeshPro] Text's Auto Size property does not respect Size when placed in a Horizontal Layout Group

--

-

Reproduction steps:
1. Open the attached “HLG_Bug.zip” project
2. Open the “SampleScene”
3. Expand the “Panel” GameObject (Canvas > Panel)
4. Select any TMP element
5. In the Inspector, check the Auto Size property

Expected result: Text size remains the same size
Actual result: Text size increases and extra padding on the right is visible

Reproducible with: 2021.3.34f1, 2022.3.17f1, 2023.2.6f1, 2023.3.0b3

Reproducible on: Windows 11
Not reproducible on: no other environment tested

Notes:
- The Horizontal Layout Group has the “Control Child Size” property Width checked
- In the Layout Properties of the TMP elements, it is visible that the Preferred Width and Height double in size when the Auto Size property is checked

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.