{ "id": "170671", "key": "TIMOB-25626", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-09T21:29:32.000+0000", "created": "2017-12-23T03:41:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ScrollableView", "android", "parity" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "56227", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "148870", "key": "TIMOB-19035", "fields": { "summary": "Android: Ti.UI.SIZE on ScrollableView not working", "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": "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": "2018-06-12T18:49:15.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\nSetting a ScrollableView's width to Ti.UI.SIZE doesn't shrink the container to fit the currently displayed view/page. It always does an equivalent to Ti.UI.FILL instead.\r\n(This works on iOS.)\r\n\r\n*Steps to Reproduce:*\r\n# Build and run the below code on Android.\r\n# Notice that the gray ScrollableView container completely fills the window width-wise.\r\n# Scroll to the right until you see the purple view.\r\n# Notice the gray ScrollableView's width never changes. It always fills the window.\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow();\r\nvar scrollableView = Ti.UI.createScrollableView(\r\n{\r\n\tviews:\r\n\t[\r\n\t\tTi.UI.createView({ backgroundColor: \"orange\", width: \"25dp\", height: \"25dp\" }),\r\n\t\tTi.UI.createView({ backgroundColor: \"red\", width: \"75dp\", height: \"75dp\" }),\r\n\t\tTi.UI.createView({ backgroundColor: \"green\", width: \"150dp\", height: \"150dp\" }),\r\n\t\tTi.UI.createView({ backgroundColor: \"blue\", width: \"225dp\", height: \"225dp\" }),\r\n\t\tTi.UI.createView({ backgroundColor: \"purple\", width: \"300dp\", height: \"300dp\" }),\r\n\t],\r\n\tshowPagingControl: true,\r\n//cacheSize: 5,\r\n\tbackgroundColor: \"gray\",\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n});\r\nwindow.add(scrollableView);\r\nwindow.open();\r\n{code}\r\n\r\n*Expected Result:*\r\nWidth of the ScrollableView should change to just-fit its child view contents.\r\n", "attachment": [ { "id": "65124", "filename": "Android-bad.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-03T23:25:44.000+0000", "size": 37813, "mimeType": "image/png" }, { "id": "65127", "filename": "Android-good1.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-03T23:25:44.000+0000", "size": 41299, "mimeType": "image/png" }, { "id": "65123", "filename": "Android-good2.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-03T23:25:44.000+0000", "size": 44714, "mimeType": "image/png" }, { "id": "65126", "filename": "Android-good3.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-03T23:25:44.000+0000", "size": 50422, "mimeType": "image/png" }, { "id": "65122", "filename": "Android-good4.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-03T23:25:44.000+0000", "size": 52046, "mimeType": "image/png" }, { "id": "65125", "filename": "Android-good5.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-03T23:25:44.000+0000", "size": 47353, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: ScrollableView Ti.UI.SIZE is ignored for width", "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, "closedSprints": [ { "id": 1000, "state": "closed", "name": "2018 Sprint 04 SDK", "startDate": "2018-02-12T04:23:01.913Z", "endDate": "2018-02-26T04:23:00.000Z", "completeDate": "2018-02-26T19:36:01.769Z", "originBoardId": 114 }, { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "432536", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9696", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-23T04:17:03.000+0000", "updated": "2017-12-23T04:17:03.000+0000" }, { "id": "437396", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Waiting for merger to be enabled.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-05T01:10:49.000+0000", "updated": "2018-05-05T01:10:49.000+0000" }, { "id": "437537", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-09T21:20:56.000+0000", "updated": "2018-05-09T21:20:56.000+0000" }, { "id": "438364", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket. Fix can be seen in SDK Version: 7.3.0.v20180607210411\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/9696", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-12T18:48:58.000+0000", "updated": "2018-06-12T18:48:58.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }