{ "id": "160147", "key": "TIMOB-23350", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-05-26T06:33:14.000+0000", "created": "2016-05-10T09:57:53.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-5.4.0" ], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [ { "id": "51841", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "160275", "key": "TIMOB-23384", "fields": { "summary": "Windows: Elements inside a ScrollView are centered.", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "52992", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "163321", "key": "TIMOB-23930", "fields": { "summary": "Windows: ScrollView doesn't load complete data", "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": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-10-06T06:47:56.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "As the [docs|http://docs.appcelerator.com/platform/latest/#!/guide/Layouts,_Positioning,_and_the_View_Hierarchy-section-29004895_Layouts,Positioning,andtheViewHierarchy-AutoSizeBehaviors] and Android and iOS have, {{Ti.UI.ScrollView}} should default to FILL.\r\n\r\nThe following example demonstrates it does not:\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow();\r\n\r\nwin.add(Ti.UI.createScrollView({\r\n\t// width: Ti.UI.FILL, height: Ti.UI.FILL,\r\n\tbackgroundColor: 'green'\r\n}));\r\n\r\nwin.open();\r\n{code}\r\n\r\nRemove the comments to see the expected behavior.", "attachment": [ { "id": "59418", "filename": "expected.jpg", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-26T00:35:34.000+0000", "size": 13209, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Windows: ScrollView width/height should default to Ti.UI.FILL", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "5.3.0 RC", "closedSprints": [ { "id": 631, "state": "closed", "name": "2016 Sprint 11 SDK", "startDate": "2016-05-21T00:06:10.029Z", "endDate": "2016-06-04T00:06:00.000Z", "completeDate": "2016-06-06T07:30:39.854Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "386839", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/720\r\n\r\nTest case taken from TIMOB-23384 which is also caused by this issue.\r\n\r\n*TEST CASE*\r\n{code}\r\nvar win = Ti.UI.createWindow(),\r\n scrollView = Ti.UI.createScrollView({\r\n // width: Ti.UI.FILL, height: Ti.UI.FILL,\r\n layout: \"vertical\",\r\n backgroundColor: 'red'\r\n }),\r\n view = Ti.UI.createView({\r\n backgroundColor: 'orange',\r\n top: 10,\r\n left: 10,\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.SIZE\r\n }),\r\n label = Ti.UI.createLabel({\r\n left: 10,\r\n right: 10,\r\n color: \"green\",\r\n backgroundColor: 'yellow',\r\n text: \"this is test text\"\r\n });\r\nview.add(label);\r\nscrollView.add(view);\r\nwin.add(scrollView);\r\nwin.open();\r\n{code}\r\n\r\n*EXPECTED*\r\n!expected.jpg|thumbnail!", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-26T00:33:20.000+0000", "updated": "2016-05-26T00:48:51.000+0000" }, { "id": "389138", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, ScrollView size now defaults to Ti.UI.FILL when the width property has not been set. \r\n\r\nTested on: \r\nWindows 10 Pro \r\nWindows Phone 10.0 (Microsoft Lumia 640 LTE) \r\nAppc Studio: 4.7.0.201606220541\r\nTi SDK: 5.4.0.v20160617074028\r\nAppc NPM: 4.2.7-2\r\nAppc Core: 5.4.0-18\r\nNode: v4.4.4\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-27T17:26:31.000+0000", "updated": "2016-06-27T17:26:31.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }