{ "id": "133192", "key": "AC-1467", "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": "2014-09-01T05:46:29.000+0000", "created": "2014-07-15T14:51:06.000+0000", "labels": [ "horizontal", "layout", "scrollview" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:54.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "The entire ScrollView will disappear if:\r\na) The ScrollView is added as the second view to a window with horizontal layout\r\nand\r\nb) Enough views are added to the ScrollView so that they are not all visible at the same time within the ScrollView.\r\n\r\nHere is my Alloy code-\r\n\r\nindex.xml:\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n\r\n{code}\r\nindex.tss:\r\n{code}\r\n\".container\": {\r\n backgroundColor:\"white\"\r\n},\r\n \r\n\"#scrollView\": {\r\n borderColor: 'green',\r\n borderWidth: '2dp',\r\n backgroundColor: 'red',\r\n contentWidth: \"auto\",\r\n contentHeight: \"auto\",\r\n horizontalWrap: false,\r\n scrollsToTop: false,\r\n showHorizontalScrollIndicator: true,\r\n showVerticalScrollIndicator: false,\r\n horizontalBounce: true,\r\n verticalBounce: false\r\n}\r\n{code}\r\nindex.js:\r\n{code}\r\nvar numViews = 10;\r\n \r\nvar views = [];\r\n \r\nvar params = [\r\n { color: \"#333\", text: \"Label 1\" },\r\n { color: \"#444\", text: \"Label 2\" },\r\n { color: \"#555\", text: \"Label 3\" },\r\n { color: \"#666\", text: \"Label 4\" },\r\n { color: \"#777\", text: \"Label 5\" },\r\n { color: \"#888\", text: \"Label 6\" },\r\n { color: \"#999\", text: \"Label 7\" },\r\n { color: \"#aaa\", text: \"Label 8\" },\r\n { color: \"#bbb\", text: \"Label 9\" },\r\n { color: \"#ccc\", text: \"Label 10\" },\r\n];\r\n \r\nfunction createViews() {\r\n function createView(args) {\r\n var view = Ti.UI.createView({\r\n width: \"240dp\",\r\n height: Ti.UI.FILL,\r\n backgroundColor: args.color\r\n });\r\n var label = Ti.UI.createLabel({\r\n text: args.text\r\n });\r\n view.add(label);\r\n return view;\r\n }\r\n \r\n for (i = 0; i < numViews; i++) {\r\n var view = createView(params[i]);\r\n views.push(view);\r\n $.scrollView.add(view);\r\n }\r\n}\r\n \r\ncreateViews();\r\n \r\n$.index.open();\r\n{code}\r\nI'm using Titanium SDK 3.2.3 and Alloy 1.3.1. Try creating a new Alloy project with the above code, and when run in the iPad simulator using landscape mode you'll see just a blank white screen. Changing numViews to 3 will cause the ScrollView to appear. Removing leftView from index.xml will also cause the ScrollView to appear.\r\n\r\nHere's the link to the Community Q&A:\r\nhttp://developer.appcelerator.com/question/175562/bug-with-scrollview\r\n", "attachment": [], "flagged": false, "summary": "ScrollView with horizontal layout disappears", "creator": { "name": "david.x.smith@sprint.com", "key": "david.x.smith@sprint.com", "displayName": "David Smith", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "david.x.smith@sprint.com", "key": "david.x.smith@sprint.com", "displayName": "David Smith", "active": true, "timeZone": "America/Chicago" }, "environment": "Titanium SDK 3.2.3, Alloy 1.3.1, iOS 7.0 iPad Simulator", "comment": { "comments": [ { "id": "315593", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "HI,\r\n\r\nYou should add this line\r\n{code}\r\nhorizontalWrap: false, \r\n{code}\r\ninto \r\n{code}\r\n\".container\": { \r\n\tbackgroundColor:\"white\",\r\n},\r\n{code}\r\nHope this will helps you.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-07-24T08:02:19.000+0000", "updated": "2014-07-24T08:02:19.000+0000" }, { "id": "316760", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~mrahman]! Can you please take a look and try the resolution? To see if that still works with 3.3.0.GA. TIA!", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-03T06:16:03.000+0000", "updated": "2014-08-03T06:16:03.000+0000" }, { "id": "316764", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi,\r\n\r\nWe tried to reproduce this issue using the sample test case. It’s working as expected with Titanium SDK 3.3.0.GA.\r\n\r\nh5. TESTING ENVIRONMENT:\r\n\r\nTitanium SDK: 3.2.3.GA and 3.3.0.GA\r\nTitanium CLI: 3.3.0\r\nOS X Version: 10.9.3\r\niOS 7.1.2\r\n\r\nh5. STEPS TO TEST:\r\n\r\n- Create a simple project.\r\n- Update project using given test code\r\n- Add horizontalWrap: false to container\r\n- Run on iOS simulator\r\n\r\n\r\nh5. EXPECTED RESULT:\r\n\r\nIt’s working as expected.\r\n\r\nThanks", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-03T08:45:43.000+0000", "updated": "2014-09-01T05:45:54.000+0000" }, { "id": "321182", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Please apply the suggested code modification. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-09-01T05:46:29.000+0000", "updated": "2014-09-01T05:46:29.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }