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
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
Add comment