{ "id": "170367", "key": "TIMOB-25532", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-11-27T08:44:27.000+0000", "created": "2017-11-17T18:21:21.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "searchBar" ], "versions": [ { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "issuelinks": [ { "id": "56176", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "170252", "key": "TIMOB-25491", "fields": { "summary": "iOS: Ti.UI.SearchBar not slide down when set visible a view on top", "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:31: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": "h3. Steps to Reproduce\nInside of my ListView I have an onItemclick event which opens a new detailcontroller. After updating to 4.10.0 the detailcontroller doesn't come to front when using the search before. It appears hidden in the back. Just after canceling the search the detail controller appears.\n\nh3. Actual Result\ncontroller.open() -> controller is hidden by searchbar\n\nh3. Expected Result\ncontroller.open() should come to front.", "attachment": [ { "id": "63632", "filename": ".log", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-17T18:21:42.000+0000", "size": 8899951, "mimeType": "text/plain" }, { "id": "63633", "filename": "diagnostic4660596753765271736.log", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-17T18:21:55.000+0000", "size": 352382, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: ListView - controller.open doesn't come to front when using searchbar ", "creator": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio 4.10.0", "closedSprints": [ { "id": 975, "state": "closed", "name": "2017 Sprint 24 SDK", "startDate": "2017-11-19T18:59:24.352Z", "endDate": "2017-12-03T18:59:00.000Z", "completeDate": "2017-12-04T23:20:14.151Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "430940", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please share the full reproducible sample code. Also, SDK CLI and testing platform info. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-11-17T19:43:28.000+0000", "updated": "2017-11-17T19:43:28.000+0000" }, { "id": "430967", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Axway Appcelerator Studio, build: 4.10.0.201709271713\r\nTesting Platform: iPad 2 Mini A1490 iOS 10.3.2 \r\nSDK: Tested with 6.2.1, 6.2.2 and latest 6.3.0\r\n--> with 6.2.1 and 6.2.2 the searchbar appears on absolutely top of the controller when getting focus. Also in 6.2.2. In 6.3.0 this behaviour disappeared and it stays on correct position but, as I mentioned before, the searchbar on focus stays focused in front, the onItemclick Event is executed and the controller is opened but is hidden by the searchbar unless I click cancel at the searchbar.\r\nI will upload an example", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-18T13:11:03.000+0000", "updated": "2017-11-18T13:11:03.000+0000" }, { "id": "430968", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sample View:\r\n\r\n{code:java}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t...\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n....\r\n{code}\r\n\r\nView Controller:\r\n\r\n\r\n{code:java}\r\nfunction openItem(e) {\r\n\ttry {\r\n\t\tvar item = $.listview.sections[e.sectionIndex].getItemAt(e.itemIndex);\r\n\t\tvar unid = item.properties.c_unid;\r\n\t\tif (!unid) {\r\n\t\t\tlog.exception(\"Doc not found!\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tvar arg = { id: unid };\r\n\t\t\tvar detail = Alloy.createController(\"tickets/show_item\", arg).getView();\r\n\t\t\tdetail.open();\t\t\t\r\n\t\t}\r\n\t} catch(e) {\r\n\t\tlog.exception(\"openItem\",e);\r\n\t\treturn;\r\n\t}\r\n}\r\n{code}\r\n", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-18T13:31:10.000+0000", "updated": "2017-11-18T13:31:10.000+0000" }, { "id": "430974", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, This is not the full sample code. Please provide a sample app of full reproducible code that we can directly use. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-11-18T19:47:21.000+0000", "updated": "2017-11-18T19:47:21.000+0000" }, { "id": "431031", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, I've created a sample app. How can I provide you the zipped file?", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-20T13:11:41.000+0000", "updated": "2017-11-20T13:11:41.000+0000" }, { "id": "431068", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~dbenhenni] Is it not possible for you to attach in ticket ?", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-21T02:33:43.000+0000", "updated": "2017-11-21T02:33:43.000+0000" }, { "id": "431089", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No, I can't attach a file to the ticket. I'm just seeing \r\n- Create Zephyr Test - Stop watching and - Remote Copy", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-21T08:04:19.000+0000", "updated": "2017-11-21T08:04:19.000+0000" }, { "id": "431097", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sdarda] Can you help in getting test app from [~dbenhenni]. Thanks!\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-21T08:40:21.000+0000", "updated": "2017-11-21T08:40:21.000+0000" }, { "id": "431159", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~vijaysingh] Can you validate this ticket as part of TIMOB-25491? [~dbenhenni] Should be fine to just link it via Dropbox / Google Drive!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-22T11:59:43.000+0000", "updated": "2017-11-22T12:00:31.000+0000" }, { "id": "431202", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~dbenhenni] In app.js file of attached example code , I do not see anything related ListView or SearchBar. I think you attached wrong example code. Can you please check it. Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-23T09:49:13.000+0000", "updated": "2017-11-23T09:49:13.000+0000" }, { "id": "431208", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You are right. This is the correct source code:\r\n[Example Code|https://www.dropbox.com/s/kt1ndhnzqu5v870/example_code.zip?dl=0]", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-23T10:31:32.000+0000", "updated": "2017-11-23T10:32:38.000+0000" }, { "id": "431221", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks [~dbenhenni]. We will look in this.\r\nTest Case 1 -\r\n\r\n{code:java}\r\nvar rows = [];\r\nfor (var i = 0; i < 20; i++) {\r\n rows.push({ title: 'Row '+ i});\r\n}\r\n \r\n \r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#ffffff',\r\n extendSafeArea : false\r\n});\r\n \r\n var button = Titanium.UI.createButton({\r\n title: 'Close Window',\r\n});\r\n \r\nwin.add(button);\r\n \r\nvar win2 = Titanium.UI.createWindow({\r\n backgroundColor: 'blue'\r\n});\r\n \r\nvar sb = Ti.UI.createSearchBar();\r\n \r\nvar lv = Ti.UI.createTableView({\r\n hideSearchOnSelection: false,\r\n data: rows,\r\n search: sb,\r\n});\r\n sb.setHintText(\"test\");\r\n \r\nwin2.add(button);\r\n \r\nlv.addEventListener('click', function(e) {\r\n Ti.API.info('click at index: ' + e.index); \r\n win2.open();\r\n})\r\n \r\n button.addEventListener('click', function(){\r\n win2.close();\r\n});\r\nwin.add(lv);\r\nwin.open();\r\n{code}\r\n\r\nTest Case 2 -\r\n\r\n\r\n{code:java}\r\n\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor: 'red',\r\n title: 'Red Window',\r\n extendSafeArea : false\r\n});\r\n \r\nvar win2 = Titanium.UI.createWindow({\r\n backgroundColor : 'blue'\r\n});\r\n \r\n var button = Titanium.UI.createButton({\r\n title: 'Close Window',\r\n});\r\nvar rows = [];\r\nfor (var i = 0; i < 5; i++) {\r\n rows.push({ properties: { title: 'Row '+ i , backgroundColor: 'red', searchableText:'Row '+i}});\r\n}\r\n \r\nvar sb = Ti.UI.createSearchBar();\r\nvar ls = Ti.UI.createListSection({\r\n items: rows\r\n});\r\n \r\n var lv = Ti.UI.createListView({\r\n top : 0,\r\n sections: [ls],\r\n searchView: sb,\r\n});\r\n \r\nsb.addEventListener('return', function(e){\r\n sb.blur();\r\n});\r\nlv.addEventListener('itemclick', function(e) {\r\n Ti.API.info('click at index: ' + e.itemIndex);\r\n win2.open();\r\n}); \r\nwin2.add(button);\r\n\r\nwin1.add(lv);\r\n \r\nbutton.addEventListener('click', function(){\r\n win2.close();\r\n});\r\n\r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-23T16:07:20.000+0000", "updated": "2017-11-24T08:10:01.000+0000" }, { "id": "431286", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed as part of TIMOB-25491.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-27T08:44:27.000+0000", "updated": "2017-11-27T08:44:27.000+0000" }, { "id": "431402", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as duplicate and fix 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:31:43.000+0000", "updated": "2017-11-28T20:31:43.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }