{ "id": "90860", "key": "TIMOB-8881", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13403", "description": "Sprint 2012-11 Core", "name": "Sprint 2012-11 Core", "archived": true, "released": true, "releaseDate": "2012-06-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-29T16:39:13.000+0000", "created": "2012-04-25T09:11:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_scrollview", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "17491", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "92293", "key": "TIMOB-9225", "fields": { "summary": "iOS: Review composite layout feature requests", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-09T15:59:35.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "scrollView.contentWidth only responds to \"auto\" and not Ti.UI.SIZE as you would expect with the composite layout changes.\r\nThis creates an inconsistent experience for developers.\r\n\r\nh4. Steps to reproduce:\r\nStep 1: run the code below\r\nStep 2: notice that the contentWidth is set to \"auto\" and is resizing as it should\r\nStep 3: replace \"auto\" with Ti.UI.SIZE\r\nStep 4: run the code again\r\nStep 5: notice that the scrollView does not scroll. This means that the contentWidth does not resize as you would expect it to with Ti.UI.SIZE\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({backgroundColor:'white'});\r\nwin.open();\r\n \r\nvar scrollView = Ti.UI.createScrollView({\r\n contentWidth: 'auto',\r\n // contentWidth: Ti.UI.SIZE,\r\n backgroundColor: 'black',\r\n layout: 'horizontal'\r\n});\r\nwin.add(scrollView);\r\n \r\nfor(var i = 0, j = 20; i < j; i++){\r\n scrollView.add(Ti.UI.createView({\r\n backgroundColor: 'red',\r\n width: 100,\r\n height: 400,\r\n left: 40\r\n }));\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: scrollView - contentWidth and contentHeight only respond to \"auto\" not Ti.UI.SIZE", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 2.0.1.GA2\r\niOS Simulator 5", "comment": { "comments": [ { "id": "196388", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed by PR 2073", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-29T16:35:56.000+0000", "updated": "2012-05-29T16:35:56.000+0000" }, { "id": "199045", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206172244\r\nTi Mobile SDK2.1.0.v20120618134156 hash r00905cd0\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1\r\n\r\nThe expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T19:50:47.000+0000", "updated": "2012-06-18T19:50:47.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }