{ "id": "87008", "key": "TIMOB-7817", "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-03-20T14:45:30.000+0000", "created": "2012-02-26T18:08:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:15:35.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": "{code}\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor : '#336699',\r\n\tborderRadius : 10,\r\n\twidth : 300,\r\n\theight : 2000,\r\n\ttop : 10\r\n});\r\n\r\nvar label2 = Ti.UI.createLabel({\r\n\ttext : 'View Size is: ',\r\n\ttop : 20,\r\n\tleft : 10,\r\n\theight : 200,\r\n\tcolor : 'black'\r\n});\r\n\r\nvar scrollView2 = Titanium.UI.createScrollView({\r\n\tcontentHeight : 'auto',\r\n\tcontentWidth : 'auto',\r\n\tshowVerticalScrollIndicator : true,\r\n\tshowHorizontalScrollIndicator : true\r\n});\r\n\r\nscrollView2.add(view);\r\nlabel2.add(scrollView2);\r\n\r\nwin.addEventListener('click', function() {\r\n\tTi.API.info(\"########################\" + scrollView2.size.height);\r\n\tTi.API.info(\"########################\" + scrollView2.size.width);\r\n\r\n});\r\n\r\nwin.add(label2);\r\nwin.open();\r\n{code}\r\n\r\n\r\nThe scroll view is not shown, and when you click on the window, the height and width returns 0.", "attachment": [], "flagged": false, "summary": "Android: scroll view is not drawn when added to a label", "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": "185304", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "IMHO, this should be marked as invalid. Adding scroll view to a label is something like adding \"div\" to \"label\" in DOM world (a crazy thing to do that wouldn't do what you would expect). The problem is that label has \"add\" method (but it is not container and can't contain other components), which leads to confusion (other controls have that method also, it is documented, but it does nothing). I actually suggested that all UI components should be hierarchically ordered (controls, containers and contexts) so that situations like this would not happen, and that all this unnecessary methods should be removed (at least for documentation) but nobody listen to me anyway. :D", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-03-07T00:51:33.000+0000", "updated": "2012-03-07T00:51:33.000+0000" }, { "id": "185356", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Ivan - Thanks for your earlier suggestion and we have decided to make this change after 2.0 release. This is more of a parity issue between iOS and Android platforms.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-07T09:33:42.000+0000", "updated": "2012-03-07T09:33:42.000+0000" }, { "id": "185486", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Glad to hear that. :)\r\n\r\n\r\nNamaskar Neeraj.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-03-08T02:53:07.000+0000", "updated": "2012-03-08T02:53:07.000+0000" }, { "id": "187451", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As Ivan mentions, ScrollViews being added to labels is not something we will be able to support in Android, because Text controls do not allow this type of embedding.\r\n\r\nWe will address the view container vs widget problem in the upcoming UI Layout Spec ", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-20T12:36:08.000+0000", "updated": "2012-03-20T12:36:08.000+0000" }, { "id": "415650", "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:15:35.000+0000", "updated": "2017-03-24T18:15:35.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }