{ "id": "176250", "key": "TIMOB-28504", "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": "21199", "description": "", "name": "Release 10.0.1", "archived": false, "released": true, "releaseDate": "2021-07-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-07-19T15:28:02.000+0000", "created": "2021-07-07T01:53:34.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ScrollableView", "android", "regression" ], "versions": [ { "id": "21199", "description": "", "name": "Release 10.0.1", "archived": false, "released": true, "releaseDate": "2021-07-28" } ], "issuelinks": [ { "id": "59300", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "176199", "key": "TIMOB-28459", "fields": { "summary": "Android: ScrollableView with databinding in Footer/HeaderView not showing up", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "59299", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "176249", "key": "TIMOB-28503", "fields": { "summary": "Android: ScrollableView UI does not render any more (10.0.1 regression)", "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": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-07-19T15:28:02.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": "*Summary:*\r\nReading the {{ScrollableView}} object's \"views\" property does not return what was assigned to it during creation before the window is opened. The returned array is wrongly empty. This property won't return expected array until after the window opens.\r\n\r\nThis bug was introduced in Titanium 10.0.1 and was caught before release.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below on Android.\r\n# Notice in the log \"@@@ view.length\" wrongly returns 0.\r\n\r\n{code:javascript}\r\nconst window = Ti.UI.createWindow();\r\nconst scrollableView = Ti.UI.createScrollableView({\r\n\tviews: [\r\n\t\tTi.UI.createLabel({ text: \"Page 1\" }),\r\n\t\tTi.UI.createLabel({ text: \"Page 2\" }),\r\n\t\tTi.UI.createLabel({ text: \"Page 3\" }),\r\n\t],\r\n\tshowPagingControl: true,\r\n});\r\nconsole.log(`@@@ views.length: ${scrollableView.views.length}`); // uh-oh\r\nwindow.add(scrollableView);\r\nwindow.open();\r\n{code}\r\n\r\n*Note:*\r\nThis is a regression caused by [TIMOB-28459].\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: ScrollableView \"views\" property not returning what was assigned during creation before window open as of 10.0.1", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "458846", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12942", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-07-07T02:11:24.000+0000", "updated": "2021-07-07T02:11:24.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }