Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26013] TextArea: Cursor should go to beginning of the text when editable is false

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusClosed
ResolutionNot Our Bug
Resolution Date2018-05-04T14:01:07.000+0000
Affected Version/sRelease 7.1.1
Fix Version/sn/a
ComponentsAndroid, iOS
Labelsn/a
ReporterShuo Liang
AssigneeUnknown
Created2018-05-04T11:07:36.000+0000
Updated2018-08-06T17:52:10.000+0000

Description

For now, if we set value to textArea by coding, the cursor will go to the end of the text value. But if the content is more than the height of the text area, you will have to scroll up to read the top content. This is very inconvenience. Specially, when customer just want to make the textArea as a read only area. We should consider with the following improvement. Like if editable property is false, then the curser should go to the beginning of content. If editable property is true, we keep the current behaviour.

Comments

  1. Hans Knöchel 2018-05-04

    I am afraid this is the native behavior. What we could propose is using textArea.setSelection(0, 0) which "selects" the text from position 0 to position 0, setting the cursor to the beginning.
  2. Eric Merriman 2018-08-06

    Closing as "not our bug". If you disagree, please reopen.

JSON Source