{ "id": "78124", "key": "TIMOB-4748", "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": "11362", "description": "Mobile 1.8.0 M09", "name": "Sprint 2011-30", "archived": true, "released": true, "releaseDate": "2011-08-01" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-27T14:50:46.000+0000", "created": "2011-07-22T10:59:01.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-10-27T14:50:52.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "This bug originated in an email from Nolan;\r\n\r\nDoing a programmatic focus like this does not work \r\n\r\n\ttext.addEventListener('click', function(){\r\n\t\tvar ta1 = Titanium.UI.createTextArea({\r\n\t\t\theight:300,\r\n\t\t\twidth:500,\r\n\t\t\ttop:70,\r\n\t\t\tfont:{fontSize:40,fontFamily:'AppleColorEmoji'},\r\n\t\t\tcolor:'#888',\r\n\t\t\ttextAlign:'left',\r\n\t\t\tborderWidth:1,\r\n\t\t\tborderColor:'#bbb',\r\n\t\t\tborderRadius:10,\r\n\t\r\n\t\t});\t\r\n\t\tCreate.window.add(ta1);\r\n\t\tta1.focus();\t\t\r\n\t});\r\n\r\nI have to do this (wrap it in a setTimeout). We need a test and a JIRA for this. \r\n\r\n\r\n\ttext.addEventListener('click', function(){\r\n\t\tvar ta1 = Titanium.UI.createTextArea({\r\n\t\t\theight:300,\r\n\t\t\twidth:500,\r\n\t\t\ttop:70,\r\n\t\t\tfont:{fontSize:40,fontFamily:'AppleColorEmoji'},\r\n\t\t\tcolor:'#888',\r\n\t\t\ttextAlign:'left',\r\n\t\t\tborderWidth:1,\r\n\t\t\tborderColor:'#bbb',\r\n\t\t\tborderRadius:10,\r\n\t\r\n\t\t});\t\r\n\t\tCreate.window.add(ta1);\r\n\t\tsetTimeout(function(){\r\n\t\t\tta1.focus();\t\t\r\n\t\t},4);\r\n\t\t\r\n\t});", "attachment": [], "flagged": false, "summary": "Programmatically focusing a TextArea does not work properly", "creator": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "160672", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sample code to test:\r\n\r\n{code}\r\nvar parent = Ti.UI.createWindow();\r\nvar openNewChildButton = Ti.UI.createButton({ title: 'Start' });\r\nparent.add(openNewChildButton);\r\n\r\nopenNewChildButton.addEventListener('click', function(){\r\nvar ta1 = Titanium.UI.createTextArea({height:100,width:300,\r\ntop:20,font:{fontSize:40,fontFamily:'AppleColorEmoji'},\r\ncolor:'#888',textAlign:'left',borderWidth:1,borderColor:'#bbb',\r\nborderRadius:10,});\r\nparent.add(ta1);\r\nta1.focus();\r\n});\r\n\r\nparent.open();\r\n{code}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-26T17:20:55.000+0000", "updated": "2011-07-26T17:20:55.000+0000" }, { "id": "160702", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request 291 submitted.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-26T18:56:16.000+0000", "updated": "2011-07-26T18:56:16.000+0000" }, { "id": "164350", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed as expected on:\niPod 3rd Gen 4.0.2\niPad 2 4.3.2\niPhone 4 4.2.10\n\nSDK:\nversion=1.8.0\ntimestamp=08/26/11 14:53\ngithash=8e978eb...\n", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-29T11:15:01.000+0000", "updated": "2011-08-29T11:15:01.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }