Search Issue Tracker
By Design
Votes
1
Found in
6000.0.50f1
6000.1.4f1
6000.2.0b3
Issue ID
UUM-107497
Regression
Yes
The scrollbar does not respect empty lines in the Input Field
How to reproduce:
1. Create and open a project
2. Install the TextMeshPro package (Window > Package Manager)
3. Install (Window > TextMeshPro > Install Examples & Extras)
4. Open the “Assets/TextMesh Pro/Examples & Extras/Scenes/20 - Input Field with Scrollbar“ Scene
5. Enter Play Mode
6. Delete all text in the top Input Field
7. Press the Enter key a bunch of times (>10)
8. Observe the scrollbar
Expected result: The Scrollbar handle gets smaller with each added line
Actual result: The Scrollbar handle stays the same size
Reproducible in: 2023.2.0a14, 6000.0.50f1, 6000.1.4f1, 6000.2.0b3
Not reproducible in: 2022.3.62f1, 2023.2.0a13
Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested
Notes:
- Handle only changes in size if there is text in those new lines
- Does not reproduce with “Preserve Whitespace“ wrapping method
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
- “FocusController has unprocessed focus events.” warnings are thrown after adding iOS, tvOS or visionOS Build Profiles
- Holes and different colors appear on default Tree Materials after applying them to the Tree GameObject and undoing changes
- Error indicating that the Text Asset Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
- Documentation installation shows "Install failed: Validation Failed" when installing Android Build Support module
- Error indicating that the Package Manifest Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
Resolution Note:
This is key:
> Does not reproduce with “Preserve Whitespace“ wrapping method
It's exactly what that option was made for. Now, it's true that maybe "Normal" wrapping mode is not the best default for InputFields, but we're not prepared to change defaults at this time and risk regressing existing use cases.
For posterity, for whitespace to affect the scroll bar, users have to change the Text Wrapping Mode to Preserver Whitespace on the Text Area > Text > TextMeshPro - Text (UI) child object/component inside the TMP InputField hierarchy.