{ "id": "170252", "key": "TIMOB-25491", "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": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-28T16:44:01.000+0000", "created": "2017-11-08T10:08:58.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "iphone" ], "versions": [ { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "issuelinks": [ { "id": "56165", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "170372", "key": "TIMOB-25528", "fields": { "summary": "iOS: ListView with SearchBar issue with Ti SDK 6.3.0.GA", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "56176", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "170367", "key": "TIMOB-25532", "fields": { "summary": "iOS: ListView - controller.open doesn't come to front when using searchbar ", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-28T20:30:09.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": "Hi, I have a SearchBar inside a Listview and when onChange event is fired i want show a View on top of ListView. With sdk 6.3.0 the Searchbar not slide down but with skd 6.1.2 the SearchBar slide down.\r\n\r\nI have attach a complete example code. \r\n\r\nYou can test my code with sdk 6.1.2 and 6.3.0 and you can see different behavior ", "attachment": [ { "id": "63565", "filename": "bugios.zip", "author": { "name": "michele.cavalcanti", "key": "michele.cavalcanti", "displayName": "Michele Cavalcanti", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-11-08T09:44:12.000+0000", "size": 10007525, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Ti.UI.SearchBar not slide down when set visible a view on top", "creator": { "name": "michele.cavalcanti", "key": "michele.cavalcanti", "displayName": "Michele Cavalcanti", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "michele.cavalcanti", "key": "michele.cavalcanti", "displayName": "Michele Cavalcanti", "active": true, "timeZone": "Europe/Rome" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.12.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 16.0GB\r\n\r\nNode.js\r\n Node.js Version = 4.6.0\r\n npm Version = 2.15.9\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.10\r\n Core Package = 6.3.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\n node-appc Version = 0.2.41\r\n\r\nTitanium SDKs\r\n 6.3.0.GA\r\n Platforms = iphone, android, mobileweb\r\n node-appc Version = 0.2.43", "comment": { "comments": [ { "id": "431091", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR : https://github.com/appcelerator/titanium_mobile/pull/9622\r\n\r\nTest Case 1 (TiUIListView) -\r\n\r\n{code:java}\r\nvar rows = [];\r\nfor (var i = 0; i < 20; i++) {\r\n rows.push({ properties: { title: 'Row '+ i , backgroundColor: 'red', searchableText:'Row '+i}});\r\n}\r\nvar win = Ti.UI.createWindow({\r\n title: 'TEST',\r\n backgroundColor: 'white',\r\n layout: 'vertical'\r\n}); \r\nvar sb = Ti.UI.createSearchBar();\r\n \r\nvar ls = Ti.UI.createListSection({\r\n items: rows\r\n});\r\n var lv = Ti.UI.createListView({\r\n sections: [ls],\r\n searchView: sb,\r\n left: 30,\r\n right: 20\r\n});\r\n \r\nsb.setHintText(\"test\");\r\n sb.addEventListener('change', function(e){\r\n view.setHeight(50);\r\n Ti.API.info(e.value);\r\n});\r\n //when the return key is hit, remove focus from our searchBar\r\nsb.addEventListener('return', function(e){\r\n view.setHeight(0);\r\n sb.blur();\r\n});\r\nsb.addEventListener('cancel', function(e){\r\n view.setHeight(0);\r\n});\r\nlv.addEventListener('itemclick', function(e) {\r\n Ti.API.info('click at index: ' + e.itemIndex);\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n backgroundColor : 'blue',\r\n height : 0,\r\n});\r\n view.addEventListener('click', function(e){\r\n Ti.API.info('view clicked');\r\n });\r\nwin.add(view);\r\nwin.add(lv);\r\nwin.open();\r\n{code}\r\n\r\nTest Case 2 (TiUITableView) -\r\n\r\n{code:java}\r\nvar rows = [];\r\nfor (var i = 0; i < 10; i++) {\r\n rows.push({ title: 'Row '+ i});\r\n}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'red',\r\n layout : 'vertical'\r\n});\r\n \r\nvar sb = Ti.UI.createSearchBar();\r\nvar lv = Ti.UI.createTableView({\r\n data: rows,\r\n search: sb,\r\n top : 50,\r\n left : 30\r\n});\r\n \r\n sb.setHintText(\"test\");\r\n sb.addEventListener('change', function(e){\r\n Ti.API.info(e.value);\r\n view.setHeight(50);\r\n});\r\n \r\nsb.addEventListener('return', function(e){\r\nsb.blur();\r\nview.setHeight(0);\r\n});\r\n \r\nsb.addEventListener('cancel', function(e){\r\n view.setHeight(0);\r\n});\r\nlv.addEventListener('click', function(e) {\r\n Ti.API.info('click at index: ' + e.index);\r\n Ti.API.info('clicked row data: ' + e.rowData.title);\r\n \r\n})\r\n \r\n var view = Ti.UI.createView({\r\n backgroundColor : 'blue',\r\n height : 0,\r\n});\r\n view.addEventListener('click', function(e){\r\n Ti.API.info('view clicked');\r\n });\r\nwin.add(view);\r\nwin.add(lv);\r\nwin.open();\r\n\r\n{code}\r\n\r\nTest Case 3 (Offset in ListView):\r\n{code:js}\r\nvar rows = [];\r\nfor (var i = 0; i < 20; i++) {\r\n rows.push({ properties: { title: 'Row '+ i , backgroundColor: 'red', searchableText:'Row '+i}});\r\n}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n}); \r\nvar sb = Ti.UI.createSearchBar();\r\n \r\nvar ls = Ti.UI.createListSection({\r\n items: rows\r\n});\r\n \r\nvar lv = Ti.UI.createListView({\r\n sections: [ls],\r\n searchView: sb,\r\n top: 100,\r\n left: 30,\r\n right: 20\r\n});\r\n \r\nsb.addEventListener('change', function(e){\r\n Ti.API.info(e.value);\r\n});\r\n\r\n// when the return key is hit, remove focus from our searchBar\r\nsb.addEventListener('return', function(e){\r\n sb.blur();\r\n});\r\n\r\nlv.addEventListener('itemclick', function(e) {\r\n Ti.API.info('click at index: ' + e.itemIndex);\r\n});\r\n \r\nwin.add(lv);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-21T08:16:18.000+0000", "updated": "2017-11-22T11:53:43.000+0000" }, { "id": "431092", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This ticket fix the issue TIMOB-25528 and TIMOB-25532 as well. So we have to verify test cases mentioned in tickets TIMOB-25528 and TIMOB-25532.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-21T08:20:31.000+0000", "updated": "2017-11-24T08:12:59.000+0000" }, { "id": "431387", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed, PR merged.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-28T16:44:01.000+0000", "updated": "2017-11-28T16:44:01.000+0000" }, { "id": "431400", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified in SDK build 7.0.0.v20171128115332", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-11-28T20:30:09.000+0000", "updated": "2017-11-28T20:30:09.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }