{ "id": "88487", "key": "TIMOB-8185", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-12T04:59:29.000+0000", "created": "2012-03-22T10:47:49.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_textfield", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "15891", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "88495", "key": "TIMOB-8191", "fields": { "summary": "Android: TextField loses focus if resized", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "16872", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "89983", "key": "TIMOB-8720", "fields": { "summary": "iOS: iPad - TableView: Soft keyboard disappears and last text field losses its focus after rotating device to landscape mode", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-12T13:55:43.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": "h2. Problem\r\nTextField in a TableViewRow loses focus if it has been resized after being focused\r\n\r\nh2. Code and steps to reproduce\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\ttitle:'pippo',\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nfunction addRow(addTextArea)\r\n{\r\n\tvar row = Ti.UI.createTableViewRow({height:200});\r\n\t\r\n\t\r\nvar $tTF = Ti.UI.createTextField({\r\n\t\theight: 30,\r\n\t\ttop : 30,\r\n\t\twidth: 100,\r\n\t\tborderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\r\n\t});\r\n\r\n\t\t$tTF.addEventListener('focus',function(_e){\r\n \tTi.API.error(\"focus \"+_e.source.height);\r\n \tTi.API.error(_e);\r\n \t_e.source.animate({height: _e.source.height*2});\r\n\t});\r\n\t\r\n\t\r\n\t\r\n\trow.add($tTF);\r\n\trow.selectionStyle = Ti.UI.iPhone.TableViewCellSelectionStyle.NONE;\r\n\trow.className = 'control';\r\n\treturn row;\r\n}\r\n\r\n// create table view data object\r\nvar data = [];\r\n\r\nfor (var x=0;x<1;x++)\r\n{\r\n\tif (x==1){\r\n\t\tdata[x] = addRow(true);\r\n\t} else {\r\n\t\tdata[x] = addRow();\r\n\t}\r\n\r\n}\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\tdata:data,\r\n\tstyle: Titanium.UI.iPhone.TableViewStyle.GROUPED\r\n});\r\nwin.addEventListener('focus', function()\r\n{\r\n\tTi.API.info('window focus fired');\r\n});\r\nwin.add(tableView);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\nTo reproduce:\r\n- Run the app and click the textField: textField is animated increasing in height.\r\nResult: focus on textField is lost.\r\n\r\nh2. Additional notes\r\nTicket associated: http://support-admin.appcelerator.com/display/APP-995689/conversation/read_all", "attachment": [], "flagged": false, "summary": "iOS: TextField loses focus if resized", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 2.0 , 1.8.2, 1.7.6\r\niOS device", "comment": { "comments": [ { "id": "190652", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Okay, the good news is that it's not due to insertView. The bad news is that it's due to tableview. ChildWillResize leads to triggerRowUpdate, which starts an updateRow. This nukes the layout completely.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-11T16:53:58.000+0000", "updated": "2012-04-11T16:53:58.000+0000" }, { "id": "192878", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull pending.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-26T19:09:07.000+0000", "updated": "2012-04-26T19:09:07.000+0000" }, { "id": "199932", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206211609\r\nTi Mobile SDK 2.1.0.v20120622174154 hash rdc9dfbe5\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1\r\n\r\nVerified expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T14:46:24.000+0000", "updated": "2012-06-23T14:46:24.000+0000" }, { "id": "202895", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-12T04:57:32.000+0000", "updated": "2012-07-12T04:57:32.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }