{ "id": "89042", "key": "TIMOB-8354", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-04-11T20:39:17.000+0000", "created": "2012-03-28T11:35:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "tbs-2.1.0" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:13:29.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": "Run the following code:\r\n{code}\r\n//Create a Ti.UI.View with scroll view and do not put any content \r\n \r\nvar win = Ti.UI.createWindow();\r\nwin.backgroundColor = 'white';\r\n\r\nvar scrollView = Titanium.UI.createScrollView({\r\n contentHeight:'auto',\r\n contentWidth:'100',\r\n showVerticalScrollIndicator:true,\r\n showHorizontalScrollIndicator:true\r\n});\r\n \r\nvar view2 = Ti.UI.createView({\r\n backgroundColor:'red'\r\n})\r\n \r\nscrollView.add(view2);\r\n \r\nwin.add(scrollView);\r\n \r\nwin.open();\r\n{code}\r\n\r\nExpected Result: \r\nThe red view's height should fill the screen, and the width should be 100 for the view.\r\n\r\nActual Result:\r\nThe red view fills the whole screen (width is size of the whole screen)", "attachment": [], "flagged": false, "summary": "iOS: ScrollView contentWidth is not respected when adding a children with fill behavior", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "190666", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The minimum height for contentWidth/contentHeight is the size of the scrollview.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-11T20:39:17.000+0000", "updated": "2012-04-11T20:39:17.000+0000" }, { "id": "190685", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "IMHO, there are cases when contentWidth/contentHeight should be smaller than scroll view's width/height and I wish that dimension values of scroll view's content could be defined like dimension values of other view-like components (in my opinion, scroll view's content ideally should behave like basic view inside scrollable area).\r\n\r\nAs a workaround, content can be wrapped in basic view (if someone will need it).", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-04-12T03:21:06.000+0000", "updated": "2012-04-12T03:21:06.000+0000" }, { "id": "415643", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:13:29.000+0000", "updated": "2017-03-24T18:13:29.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }