← Back to team overview

touch-packages team mailing list archive

[Bug 1245450] Re: Cursor position in TextArea jumps to zero when enter is pressed

 

** Changed in: ubuntu-ui-toolkit (Ubuntu)
   Importance: Undecided => Low

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: New => Confirmed

** Changed in: ubuntu-ui-toolkit (Ubuntu)
     Assignee: (unassigned) => Zsombor Egri (zsombi)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1245450

Title:
  Cursor position in TextArea jumps to zero when enter is pressed

Status in Ubuntu UI Toolkit:
  Confirmed
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Confirmed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1245450/+subscriptions