Cursor position in TextArea jumps to zero when enter is pressed

Bug #1245450 reported by Ugo Riboni
10
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.

Tags: text-input
Revision history for this message
Ugo Riboni (uriboni) wrote :
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Zsombor Egri (zsombi)
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
milestone: none → february-2014
Zsombor Egri (zsombi)
tags: added: text-input
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
importance: Undecided → Medium
Changed in ubuntu-ui-toolkit:
milestone: february-2014 → march-2014
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
milestone: march-2014 → april-2014
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
milestone: april-2014 → june-2014
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
milestone: june-2014 → august-2014
Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
importance: Medium → Low
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit:
milestone: august-2014 → 11.07
milestone: 11.07 → 11.21
Zoltan Balogh (bzoltan)
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.