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
- Unity Cloud icon does not appear next to project and does not connect correctly when the project is created with Cloud but closed right after creation
- ScrollerSlider in the Scroller Control is still using UXMLTraits
- Crash on ExtractHandles when shutting down the Editor in a specific scene while Burst jobs are in progress
- Unity Hub closes with no "Project is currently open" window when selecting an already open project from the Projects list
- The Hub freezes indefinitely when copy/pasting a lot of characters in the “Set project display name” Hub window since it has no character limit
Add comment