{ "id": "95008", "key": "TIMOB-9947", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-06-27T18:30:37.000+0000", "created": "2012-07-12T04:55:53.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-27T18:30:37.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": "TextField in a TableViewRow loses focus if it has been resized after being focused\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n title:'pippo',\r\n backgroundColor:'white'\r\n});\r\n \r\nfunction addRow(addTextArea)\r\n{\r\n var row = Ti.UI.createTableViewRow({height:200});\r\n \r\n \r\nvar $tTF = Ti.UI.createTextField({\r\n height: 30,\r\n top : 30,\r\n width: 100,\r\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\r\n });\r\n \r\n $tTF.addEventListener('focus',function(_e){\r\n Ti.API.error(\"focus \"+_e.source.height);\r\n Ti.API.error(_e);\r\n _e.source.animate({height: _e.source.height*2});\r\n });\r\n \r\n \r\n \r\n row.add($tTF);\r\n row.selectionStyle = Ti.UI.iPhone.TableViewCellSelectionStyle.NONE;\r\n row.className = 'control';\r\n return 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 if (x==1){\r\n data[x] = addRow(true);\r\n } else {\r\n data[x] = addRow();\r\n }\r\n \r\n}\r\n \r\nvar tableView = Ti.UI.createTableView({\r\n data:data,\r\n style: Titanium.UI.iPhone.TableViewStyle.GROUPED\r\n});\r\nwin.addEventListener('focus', function()\r\n{\r\n Ti.API.info('window focus fired');\r\n});\r\nwin.add(tableView);\r\n \r\nwin.open();\r\n{code}\r\n\r\nTo reproduce do following steps:\r\n1.Run the app and click the textField: \r\n\r\nExpected result :\r\n1. textField is animated increasing in height and remains focused.\r\n\r\nActual Result: \r\n1. focus on textField is lost.", "attachment": [], "flagged": false, "summary": "Android: TextField loses focus if resized", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Adding environment info -\r\nTested with Titanium SDK: 2.1.0.v20120628121617\r\nTested with Titanium  Studio: 2.1.0.201206251749\r\nDevice - Android 2.3.6 Samsung GALAXY Note\r\nMachine OS - MAC 10.7.3", "comment": { "comments": [ { "id": "240448", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\nDevice: Samsung galaxy s duos Android version: 4.0.4\nAndroid Emulator: Android SDK version: 2.2", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-02T08:24:21.000+0000", "updated": "2013-03-02T08:24:21.000+0000" }, { "id": "422967", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170623141152\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-27T18:30:37.000+0000", "updated": "2017-06-27T18:30:37.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }