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

Package: UI Toolkit

-

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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.