{ "id": "173104", "key": "TIMOB-26972", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": null, "resolutiondate": null, "created": "2019-03-08T16:28:58.000+0000", "priority": null, "labels": [ "alloy", "listview", "scrollableView" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-09T17:53:15.000+0000", "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" } }, "components": [], "description": "The following Alloy code does not show the Views inside the Scrollable view:\r\n{code}\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\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\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\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nBut when you create it through code it will show the views inside the ScrollableView:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#000\"\r\n});\r\n\r\nvar scrollableViewTemplate = {\r\n\tchildTemplates: [{\r\n\t\ttype: 'Ti.UI.ScrollableView',\r\n\t\tbindId: 'scrollableView',\r\n\t\tproperties: {\r\n\t\t\theight: 200,\r\n\t\t\tviews: [\r\n\t\t\t\tTi.UI.createView({\r\n\t\t\t\t\tbackgroundColor: 'red'\r\n\t\t\t\t}),\r\n\t\t\t\tTi.UI.createView({\r\n\t\t\t\t\tbackgroundColor: 'blue'\r\n\t\t\t\t}),\r\n\t\t\t\tTi.UI.createView({\r\n\t\t\t\t\tbackgroundColor: 'green'\r\n\t\t\t\t})\r\n\t\t\t]\r\n\t\t}\r\n\t}]\r\n};\r\n\r\nvar items = [{\r\n\ttemplate: 'scrollableView'\r\n}];\r\n\r\nfor (var i = 0; i < 40; i++) {\r\n\titems.push({\r\n\t\tproperties: {\r\n\t\t\ttitle: 'Item',\r\n\t\t\theight: 50\r\n\t\t}\r\n\t});\r\n}\r\n\r\nvar section = Ti.UI.createListSection({\r\n\titems: items\r\n});\r\n\r\nvar listView = Ti.UI.createListView({\r\n\ttemplates: {\r\n\t\t'scrollableView': scrollableViewTemplate\r\n\t},\r\n\tsections: [section]\r\n});\r\n\r\nwin.add(listView);\r\nwin.open();\r\n{code}\r\n\r\nFrom looking at the converted Alloy->JS code you can see that is assigning an empty array to the {{views}} section but the child views never get pushed into this array.\r\n\r\nTested it with Ti SDK 7.5.1 on Android 7", "attachment": [], "flagged": false, "summary": "ScrollableView inside ListView not working when using Alloy", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }