Search Issue Tracker
By Design
Votes
0
Found in [Package]
3.0.6
Issue ID
1348298
Regression
No
Preferred Height of a TMP Text is sometimes incorrect
Reproduction steps:
1. Open the "Tooltip.zip" project attached by the user
2. Enter Play Mode
3. Hover over the left button
4. Hover over the middle button
Expected result: Tooltip's background height is the same, not significantly higher
Actual result: Tooltip's background height is significantly higher because Text returns a higher Preferred Height
Reproducible with: 2.1.6 (2019.4.29f1), 3.0.6 (2020.3.14f1, 2021.1.14f1, 2021.2.0b3, 2022.1.0a1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note:
This behavior is by design and related to how the layout system works.
Please see the following post for detailed explanation. https://forum.unity.com/threads/text-metrics-sometimes-incorrect-when-the-text-contains-spaces.1136176/#post-7331752