Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
0
Found in [Package]
1.0.0-preview.13
Issue ID
1296394
Regression
No
[UI Toolkit] Caret/Text cursor is offset after selecting text when tabs are added in start of TextField
How to reproduce:
1. Open the attached project
2. Open the "Bug Report" Window (Bug Report->TextField)
3. In the "Bug Report" Window, add a couple of tabs at the start of the TextField
4. Write some text (5-10 characters)
5. Try to select the written text by clicking on it
6. Observe the caret/text cursor position
Expected result: Caret/text cursor position is relative to the clicked point
Actual result: Caret/text cursor position is not relative to the clicked point, there's an offset
Reproducible with: 1.0.0-preview.13 (2020.1.17f1, 2020.2.0f1, 2021.1.0a6)
Couldn't test with Unity: 2018.4.30f1, 2019.4.16f1 (UI Toolkit package is not available), 2021.1.0a7, 2021.1.0a10 (Internal package errors)
Note: Offset depends on the number of tabs added at the start of the TextField
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
- Unity Version Control server textfield’s text overlaps with the dropdown triangle button in the Explore repositories window when an organization with a long name is selected
Add comment