{ "id": "164906", "key": "ALOY-1532", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2017-02-14T04:54:36.000+0000", "created": "2016-12-07T04:48:23.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "eng-priority" ], "versions": [ { "id": "17688", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-14" } ], "issuelinks": [ { "id": "53763", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "164463", "key": "TIMOB-24126", "fields": { "summary": "Windows: Adding a searchbar to a tableview or listview search property should also add it to the window", "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": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2017-02-14T04:54:36.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": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" } ], "description": "h6.Reproduce\r\n1. Create a simple alloy project with following code.\r\n{code}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n{code}\r\n2. Run it on Windows10 device.\r\n\r\nh6.Actual\r\nThere is no searchBar on screen like the screenshot attached.\r\n\r\nh6.Note\r\n1. If create a simple classic project, with following codes, then run it on same device. It is working well.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'green',\r\n layout: 'vertical'\r\n});\r\nvar searchBar = Ti.UI.createSearchBar({\r\n width: Ti.UI.FILL,\r\n height: '10%'\r\n});\r\nvar listView = Ti.UI.createListView({\r\n searchView: searchBar,\r\n width: Ti.UI.FILL, height: '80%'\r\n});\r\nvar sections = [];\r\n\r\nvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits' });\r\nvar fruitDataSet = [\r\n { properties: { title: 'Apple' } },\r\n { properties: { title: 'Banana' } },\r\n];\r\nfruitSection.setItems(fruitDataSet);\r\nsections.push(fruitSection);\r\n\r\nvar vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables' });\r\nvar vegDataSet = [\r\n { properties: { title: 'Carrots' } },\r\n { properties: { title: 'Potatoes' } },\r\n];\r\nvegSection.setItems(vegDataSet);\r\nsections.push(vegSection);\r\n\r\nlistView.sections = sections;\r\nwin.add(searchBar);\r\nwin.add(listView);\r\nwin.open();\r\n{code}\r\n\r\n2. Tested on SDK 5.5.1.GA, 6.0.0.GA and 6.0.1.\r\n\r\n3. Same code is working well on iOS and Android.", "attachment": [ { "id": "61439", "filename": "6.1.0.v20170202120400.png", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-02-03T15:25:52.000+0000", "size": 104177, "mimeType": "image/png" }, { "id": "61023", "filename": "Screen Shot 2016-12-06 at 10.01.06 PM____tisdk6_0_0.png", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2016-12-07T04:49:50.000+0000", "size": 139529, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: SearchBar (inside ListView) is not working well for alloy project", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 5.5.1, 6.0.0 and 6.0.1\r\nCLI 6.0.0\r\nstudio 4.8.0\r\nWindows 10", "comment": { "comments": [ { "id": "402867", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~sliang] This might be an underlying issue with the Windows SDK itself. I suspect that this might be due to TIMOB-24126, on iOS and Android you don't actually need to explicitly add a searchBar to the window when you specify it as searchView for a listview, which would explain why the alloy code works on iOS and Android", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-12-07T10:54:06.000+0000", "updated": "2016-12-07T10:54:06.000+0000" }, { "id": "402868", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Ye. I thinks so. Good one.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2016-12-07T10:59:22.000+0000", "updated": "2016-12-07T10:59:22.000+0000" }, { "id": "406279", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "[~sliang] Please try with SDK 6.1.0.v20170202120400. ", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-02-03T15:24:37.000+0000", "updated": "2017-02-03T15:24:37.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }