{ "id": "93367", "key": "TIMOB-9595", "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-06-18T11:14:01.000+0000", "created": "2012-06-17T06:21:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-and060112", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:09:53.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": "A scrollview that shows more than one view, does not show up correctly. It shows up only one view that spans the complete height of the screen.\r\n\r\nRegression. The issue does not occur on 2.0.2\r\n\r\nSteps to reproduce:\r\n1. Create an application with code below\r\n2. Launch application\r\n\r\nActual: Only view 1 is shown on the screen and spans the complete height of the screen\r\n\r\nExpected: Two views should show up\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow({\r\n\tbackgroundColor:'#000'\r\n})\r\nvar scrollview=Ti.UI.createScrollView({\r\n \t contentWidth: 'auto',\r\n\t\t contentHeight: 'auto',\r\n\t\t showVerticalScrollIndicator: true\r\n })\r\n var view = Ti.UI.createView({\r\n\t\t\tlayout : 'vertical',\r\n\t\t\twidth: 400,\r\n\t\t height: 'auto',\r\n\t\t\tbackgroundColor : 'green'\r\n\t\t});\r\nscrollview.add(view);\r\n\t\tvar view1 = Ti.UI.createView({\r\n\t\t\tlayout : 'vertical',\r\n\t\t\tbackgroundColor : 'red',\r\n\t\t\theight:'auto'\r\n\t\t});\r\n\t\t\r\n\t\tvar view2 = Ti.UI.createView({\r\n\t\t\tlayout : 'vertical',\r\n\t\t\tbackgroundColor : 'red',\r\n\t\t\theight:'auto'\r\n\t\t});\r\n\t\t\r\nvar label1 = Ti.UI.createLabel({\r\n\ttext:\"View1\"\r\n})\r\nvar label2 = Ti.UI.createLabel({\r\n\ttext:\"View2\"\r\n})\r\nview1.add(label1);\r\nview2.add(label2);\r\nview.add(view1);\r\nview.add(view2);\t\t\r\n_window.add(scrollview);\r\n_window.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ScrollView: More than one view on a scrollview shows up only one view", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.0.201206151953\r\nTitanium SDK: 2.1.0.v20120615184153\r\nAndroid Device: Android 2.2, Android Tab (V3.2)\r\nRuntime: v8", "comment": { "comments": [ { "id": "198933", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is correct behavior. When you set height to auto, the view fills its parent. The bevahior in 2.0.2 is incorrect. This is documented here: https://wiki.appcelerator.org/display/guides2/UI+Composite+Layout+Behavior+Spec#UICompositeLayoutBehaviorSpec-ScrollView%22auto%22\r\n\r\nClosing bug as invalid.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T11:08:38.000+0000", "updated": "2012-06-18T11:08:38.000+0000" }, { "id": "415630", "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:09:53.000+0000", "updated": "2017-03-24T18:09:53.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }