Cursor position in TextArea jumps to zero when enter is pressed
Bug #1245450 reported by
Ugo Riboni
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Confirmed
|
Low
|
Zsombor Egri | ||
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
Low
|
Zsombor Egri |
Bug Description
In the attached example, when editing the text and pressing the Enter key to go to a new line, the cursorPosition property jumps to zero and only then it goes to the right value.
This problem does not happen when using a regular TextEdit, and should not happen in the SDK either.
What is worse is that if we make the TextArea autoexpanding (i.e. autoSize: true and maximumLineCount: 0) and then we look at the value of cursorPosition when onHeightChanged, the cursorPosition that we get is always zero.
In other words, while the height of the TextArea changes due to the user entering more text than the TextArea can contain, it's not possible to know right away the position of the cursor.
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Zsombor Egri (zsombi) |
Changed in ubuntu-ui-toolkit: | |
milestone: | none → february-2014 |
tags: | added: text-input |
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → Medium |
Changed in ubuntu-ui-toolkit: | |
milestone: | february-2014 → march-2014 |
Changed in ubuntu-ui-toolkit: | |
milestone: | march-2014 → april-2014 |
Changed in ubuntu-ui-toolkit: | |
milestone: | april-2014 → june-2014 |
Changed in ubuntu-ui-toolkit: | |
milestone: | june-2014 → august-2014 |
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
importance: | Medium → Low |
Changed in ubuntu-ui-toolkit: | |
milestone: | august-2014 → 11.07 |
milestone: | 11.07 → 11.21 |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Zsombor Egri (zsombi) |
importance: | Undecided → Low |
status: | New → Confirmed |
To post a comment you must log in.