{ "id": "82766", "key": "AC-2840", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2011-12-21T21:26:16.000+0000", "created": "2011-11-16T00:39:59.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:47:46.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Run this code to see the difference:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#000',\r\n layout: 'vertical'\r\n});\r\n \r\nvar view1 = Ti.UI.createScrollView({\r\n layout: 'vertical',\r\n contentHeight: '50%',\r\n height: '50%',\r\n backgroundColor: '#00f'\r\n});\r\n \r\nvar view2 = Ti.UI.createView({\r\n layout: 'vertical',\r\n height: '50%',\r\n backgroundColor: '#0f0'\r\n});\r\n \r\nvar label1 = Ti.UI.createLabel({\r\n text: 'ScrollView',\r\n right: 20,\r\n top: 10,\r\n width: 200\r\n});\r\n \r\nvar button1 = Ti.UI.createButton({\r\n top: '50%',\r\n right: 0,\r\n width: 200,\r\n title: 'Button 1'\r\n});\r\n \r\nvar label2 = Ti.UI.createLabel({\r\n text: 'View',\r\n top: 10,\r\n right: 20,\r\n width: 200\r\n});\r\n \r\nvar button2 = Ti.UI.createButton({\r\n top: '50%',\r\n right: 0,\r\n width: 200,\r\n title: 'Button 2'\r\n});\r\n \r\nview1.add(label1);\r\nview1.add(button1);\r\n \r\nview2.add(label2);\r\nview2.add(button2);\r\n \r\nwin.add(view1);\r\nwin.add(view2);\r\n \r\nwin.open();\r\n{code}\r\n\r\n\r\n\r\n\"View\"'s behavior is, IMHO, the right one and \"ScrollView\" should behave same way.", "attachment": [ { "id": "24822", "filename": "screenshot_459.png", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-21T21:45:31.000+0000", "size": 23857, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Inconsistent vertical layout mechanism between \"View\" and \"ScrollView\" components", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "* Titanium SDK version: 1.7.6 (11/14/11 10:41 2de9cc7...), Titanium SDK version: 1.8.0 (11/14/11 10:39 1012866...)\r\n* Android 2.2 (Samsung Galaxy Tab v7)\r\n* Windows XP x64", "comment": { "comments": [ { "id": "176982", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Using Titanium 1.8.0.1 (2011/12/17 19:53 c903964) + Android APIs 2.2 and the following code produces the correct behavior and thus the screenshot attached.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#000',\r\n\tlayout: 'vertical'\r\n});\r\n\r\nvar scrollView1 = Ti.UI.createScrollView({\r\n\tlayout: 'vertical',\r\n\theight: '50%',\r\n\tbackgroundColor: '#00f'\r\n});\r\n\r\nvar view2 = Ti.UI.createView({\r\n\tlayout: 'vertical',\r\n\theight: '50%',\r\n\tbackgroundColor: '#0f0'\r\n});\r\n\r\nvar label1 = Ti.UI.createLabel({\r\n\ttext: 'ScrollView',\r\n\tright: 20,\r\n\ttop: 10,\r\n\twidth: 200\r\n});\r\n\r\nvar button1 = Ti.UI.createButton({\r\n\ttop: '50%',\r\n\tright: 0,\r\n\twidth: 200,\r\n\ttitle: 'Button 1'\r\n});\r\n\r\nvar label2 = Ti.UI.createLabel({\r\n\ttext: 'View',\r\n\ttop: 10,\r\n\tright: 20,\r\n\twidth: 200\r\n});\r\n\r\nvar button2 = Ti.UI.createButton({\r\n\ttop: '50%',\r\n\tright: 0,\r\n\twidth: 200,\r\n\ttitle: 'Button 2'\r\n});\r\n\r\nscrollView1.add(label1);\r\nscrollView1.add(button1);\r\n\r\nview2.add(label2);\r\nview2.add(button2);\r\n\r\nwin.add(scrollView1);\r\nwin.add(view2);\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-21T21:25:58.000+0000", "updated": "2011-12-21T21:25:58.000+0000" }, { "id": "176991", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I can confirm that this issue is fixed.\r\n\r\n\r\nThanks again.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-12-22T01:05:41.000+0000", "updated": "2011-12-22T01:05:41.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }