{ "id": "62488", "key": "TIMOB-1856", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:21.000+0000", "created": "2011-04-15T03:04:03.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:21.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": "{html}

Sample app.js:

\n
\nTitanium.UI.setBackgroundColor('#000');\nvar win = Ti.UI.createWindow({\n    exitOnClose: true,\n    fullscreen: true,\n    backgroundColor: 'purple'\n});\nvar sv = Ti.UI.createScrollView({\n    left: 0, right: 0, top: 0, height: 100,\n    backgroundColor: 'green'\n});\nvar v = Ti.UI.createView({\n    left: 0, right: 0, top: 0, height: 50,\n    backgroundColor: 'red'\n});\nsv.add(v);\nwin.add(sv);\nwin.open();\n
\n

You should see a smaller red view inside the green scrollview.\nBut you don't. If you change createView argument\nright:0 to width:100 it works.

\n

Note that if the outer view is a standard View\ninstead of a ScrollView, it works fine. So it seems to\nbe only happening with ScrollView.

{html}", "attachment": [], "flagged": false, "summary": "Android: Scrollview does not allow child view to use right:0 to specify full width", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "126840", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Assigned to Don for milestone/priority.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:04:03.000+0000", "updated": "2011-04-15T03:04:03.000+0000" }, { "id": "126841", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

What's the expected setting of contentWidth in order to give you\nwidth of the ScrollView's content area?

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:03.000+0000", "updated": "2011-04-15T03:04:03.000+0000" }, { "id": "126842", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [fae3442e85164bc616e31441fa5de28fb18e41fa])\n[#987\nstate:fixed-in-qa][#1472 state:fixed-in-qa][#1856\nstate:fixed-in-qa][#863 state:fixed-in-qa] scroll view support\nvertical layout. Fixed other layout issues with scrollview. Note:\n#863\nthe KS test seems to have been changed to include top. I removed\ntop and the label display as expected. \nhttp://github.com/appcelerator/titanium_mobile/commit/fae3442e85164...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:04.000+0000", "updated": "2011-04-15T03:04:04.000+0000" }, { "id": "126843", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.4.2.4ce7ff G1 running 1.6, 2.2 simulator.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:04.000+0000", "updated": "2011-04-15T03:04:04.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }