{ "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\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
\nTake out the keyboardType
and you'll get the\nnormal, desired multi-line word-wrapped control.
(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...
confirmed on simultaor and nexus 1 running 2.2. iOS 4.0.2