{ "id": "62169", "key": "TIMOB-1537", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:27.000+0000", "created": "2011-04-15T02:55:23.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "textarea" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:27.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

If you explicitly set the keyboardType when\ncreating a TextArea, the control ends up being single-line with no\nword wrap. Simple test case app.js:

\n
\n\nTitanium.UI.setBackgroundColor('#000');\n\nvar w = Ti.UI.createWindow({\n    fullscreen: true,\n    title: 'test'\n});\n\nvar ta = Titanium.UI.createTextArea({\n    value: \"Now is the time for all good men to come to the aid of their country.\",\n    height:100, width:300, top: 0, left: 0,\n    keyboardType:Titanium.UI.KEYBOARD_DEFAULT\n});\nw.add(ta);\nw.open();\n
\n

Take out the keyboardType and you'll get the\nnormal, desired multi-line word-wrapped control.

{html}", "attachment": [], "flagged": false, "summary": "Android: Setting keyboard on TextArea forces single-line", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "125969", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [db6c9eca8f65e3e36621ff52326c86ca04915766])\n[#1537 state:fixed-in-qa] after setting keyboard,\nmake sure to re-disable single line mode for TextArea. \nhttp://github.com/appcelerator/titanium_mobile/commit/db6c9eca8f65e...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:55:23.000+0000", "updated": "2011-04-15T02:55:23.000+0000" }, { "id": "125970", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

confirmed on simultaor and nexus 1 running 2.2. iOS 4.0.2

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:55:23.000+0000", "updated": "2011-04-15T02:55:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }