Search Issue Tracker
Not Reproducible
Votes
4
Found in
5.5.0f1
Issue ID
853921
Regression
Yes
Vertical Fit (Content Size Fitter) ignores the text height when it sets Horizontal Overflow to Wrap
If the text has "Horizontal Overflow" set to Wrap and "Vertical Fit" (Content Size Fitter) set to Preferred Size, the height of the text still is shown in one line (like "Horizontal Overflow" be set to Overflow).
Reproduction steps:
1. Open the attached file;
2. Find the object "Text" and set "Content Size Fitter" option "Vertical Fit" to Preferred Size;
Actual result: the text is shown up in one line.
Expected result: the height of "Rect Transform" should adapt by the text height and show all text.
Reproduced with: 5.5.0b11, 5.5.0f1, 5.6.0a3
Not reproducible: 5.3.6p4, 5.4.3f1, 5.5.0a1
Regression introduced in 5.5.0b11
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
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
gabotinysoft
Dec 12, 2016 20:16
I mean same issue is here:
https://issuetracker.unity3d.com/issues/content-size-fitter-component-on-text-fields-is-malfunctional
Adnimistrator
Dec 05, 2016 21:15
I have reported simmilar bug and it was closed as duplicate tu this.
My problem:
UnityEngine.UI.Text
preferredWidth does not refresh when BestFit is true
1. Launch Unity
2.Create a new project with no packages imported
3. Choose GameObject->UI->Text
4. Turn on Best Fit in Text component
preferredWidth of the Text does not refresh its value while prefferedHeight is computed and refreshed correctly
Reproduced: 5.5.0f3
Not reproduced: 5.2.2f1