{ "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
\nYou 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.
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
.
Assigned to Don for milestone/priority.
What's the expected setting of contentWidth in order to give you\nwidth of the ScrollView's content area?
(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...
1.4.2.4ce7ff G1 running 1.6, 2.2 simulator.