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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.