{ "id": "89872", "key": "TIMOB-8696", "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": "13400", "description": "Sprint 2012-12 Mobile Web", "name": "Sprint 2012-12 MW", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-14T15:31:28.000+0000", "created": "2012-04-11T20:43:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-16T20:55:52.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "{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 label = Ti.UI.createLabel({\r\n text: 'View Size is: ',\r\n top: 20,\r\n left: 10,\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.SIZE,\r\n color: 'black'\r\n});\r\n \r\nvar scrollView = Titanium.UI.createScrollView({\r\n contentHeight:'50',\r\n contentWidth:'auto',\r\n showVerticalScrollIndicator:true,\r\n showHorizontalScrollIndicator:true\r\n});\r\n \r\nvar view = Ti.UI.createView();\r\n \r\nvar view2 = Ti.UI.createView({\r\n backgroundColor:'red'\r\n \r\n})\r\n \r\nscrollView.add(view2);\r\n \r\nwin.addEventListener('postlayout', function layoutHandler(e) {\r\n win.removeEventListener('postlayout', layoutHandler);\r\n label.text = 'ScrollView\\'s height and width: ' + scrollView.size.height + 'x' + scrollView.size.width + '\\n' +\r\n 'Screen\\'s height and width: ' + win.size.height + 'x' + win.size.width;\r\n win.addEventListener('postlayout', layoutHandler);\r\n});\r\n \r\nwin.add(scrollView);\r\nwin.add(view);\r\nview.add(label);\r\n \r\nwin.open();\r\n{code}\r\n\r\nIn the code above, the height of view2 should be the size of the scroll view and not 50.", "attachment": [], "flagged": false, "summary": "MobileWeb: Parity: The minimum width of contentWidth/contentHeight should be the size of the scroll view.", "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": "198389", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2387", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-13T15:49:52.000+0000", "updated": "2012-06-13T15:49:52.000+0000" }, { "id": "412984", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:55:52.000+0000", "updated": "2017-03-16T20:55:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }