{ "id": "124308", "key": "AC-2078", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-01-06T06:54:52.000+0000", "created": "2013-12-31T21:53:04.000+0000", "labels": [ "android", "mobile", "textarea" ], "versions": [], "issuelinks": [ { "id": "34095", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "121330", "key": "TIMOB-15535", "fields": { "summary": "Android: TextArea won't go multiline", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:02.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Description\r\nText in a textarea is not wrapping to next line when using returnKeyType and/or autocapitalization. This has worked on several 3.1 SDKs. Broke with 3.2GA.\r\n\r\nh2. Test Case\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : \"#ddd\"\r\n});\r\n \r\nwin.open();\r\n \r\nwin.add(Ti.UI.createTextArea({\r\n top : 10,\r\n height : 60,\r\n width : Ti.UI.FILL,\r\n color : \"#000\",\r\n backgroundColor : \"#fff\",\r\n value : \"With returnKeyType. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't.\",\r\n returnKeyType : Titanium.UI.RETURNKEY_DONE\r\n}));\r\n \r\nwin.add(Ti.UI.createTextArea({\r\n top : 80,\r\n height : 60,\r\n width : Ti.UI.FILL,\r\n color : \"#000\",\r\n backgroundColor : \"#fff\",\r\n value : \"With autocapitalization. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't.\",\r\n autocapitalization : Ti.UI.TEXT_AUTOCAPITALIZATION_SENTENCES\r\n}));\r\n \r\nwin.add(Ti.UI.createTextArea({\r\n top : 150,\r\n height : 60,\r\n width : Ti.UI.FILL,\r\n color : \"#000\",\r\n backgroundColor : \"#fff\",\r\n value : \"With both returnKeyType and autocapitalization. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't. This is text that should wrap, but doesn't.\",\r\n returnKeyType : Titanium.UI.RETURNKEY_DONE,\r\n autocapitalization : Ti.UI.TEXT_AUTOCAPITALIZATION_SENTENCES\r\n}));\r\n \r\nwin.add(Ti.UI.createTextArea({\r\n top : 220,\r\n height : 60,\r\n width : Ti.UI.FILL,\r\n color : \"#000\",\r\n backgroundColor : \"#fff\",\r\n value : \"No returnKeyType or autocapitalization. This text wraps properly. This text wraps properly. This text wraps properly. This text wraps properly. This text wraps properly.\"\r\n}));\r\n \r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Textarea text not wrapping on Android with SDK 3.2GA with returnKeyType and/or autocapitalization", "creator": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Application type: mobile\r\nTitanium SDK: 3.2GA\r\nPlatform & version: Android 4.0.3\r\nDevice: Samsung Galaxy S3\r\nHost Operating System: Windows 7\r\nTitanium Studio: 3.2GA", "comment": { "comments": [ { "id": "286690", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any way to get this looked at? The options I'm using, returnKeyType and autocapitalization, are probably pretty common, and wrapping is key for textarea.", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-06T00:08:24.000+0000", "updated": "2014-01-06T00:08:24.000+0000" }, { "id": "286735", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This ticket is a duplicate of TIMOB-15535. Please follow along that ticket for further updates.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-06T06:54:52.000+0000", "updated": "2014-01-06T06:54:52.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }