{ "id": "126636", "key": "TIMOB-16485", "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": "16092", "description": "2014 Sprint 08", "name": "2014 Sprint 08", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "16093", "description": "2014 Sprint 08 SDK", "name": "2014 Sprint 08 SDK", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-17T22:28:48.000+0000", "created": "2014-02-20T08:27:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_scrollview", "qe-closed-3.3.0", "qe-testadded", "supportTeam" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:08.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": "h2. Description\r\nWhen using a scrollview and setting layout to 'horizontal', I wish to scroll the content in a horizontal fashion, Setting contentWidth to Ti.UI.SIZE or Ti.UI.FILL or auto doesn't work unless I specify the specific contentWidth.\r\n\r\nThis used to work properly in previous version sdk 3.1.3.GA\r\n\r\nh2. Test Case\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'white'\r\n});\r\n\r\n\r\nfunction createRow(i) {\r\n var row = Ti.UI.createView({\r\n backgroundColor: 'white',\r\n borderColor: '#bbb',\r\n borderWidth: 1,\r\n width:40, height: 40,\r\n top: 0, left: 4\r\n });\r\n return row;\r\n}\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n bottom:120,\r\n layout: 'horizontal',\r\n contentWidth:'auto',\r\n contentHeight:50,\r\n height:50\r\n});\r\n\r\nfor(var i = 0; i <= 20; i++){\r\nvar row = createRow(i);\r\n scrollView.add(row);\r\n}\r\nwin.add(scrollView);\r\n\r\nwin.open();\r\n{code}\r\n\r\nExpected Behaviour :\r\nIt should allow to scroll horizontally\r\n\r\nActual Behaviour :\r\nIts not allowing to scroll horizontally\r\n\r\nNote : If I set any specific contentWidth (any specific value) then it will allow me to scroll.\r\n", "attachment": [], "flagged": false, "summary": "Android:contentWidth in scrollview not working properly when setting layout to horizontal for android", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android : 4.x\r\nTitanium SDK 3.2.0GA, 3.2.1GA", "comment": { "comments": [ { "id": "301287", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Another test case:\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor:'white'\n});\n \n \nfunction createRow(i) {\n var row = Ti.UI.createView({\n backgroundColor: 'white',\n borderColor: '#bbb',\n borderWidth: 1,\n width:200, height: 40,\n top: 0, left: 4, bottom: 4\n });\n return row;\n}\n \nvar scrollView = Ti.UI.createScrollView({\n bottom:120,\n layout: 'horizontal',\n scrollType: 'horizontal',\n contentWidth: 'auto',\n horizontalWrap: true,\n height: Ti.UI.SIZE,\n width: 200,\n backgroundColor:'red'\n});\n \nfor(var i = 0; i < 5; i++){\nvar row = createRow(i);\n scrollView.add(row);\n}\nwin.add(scrollView);\n \nwin.open();\n{code}", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-17T18:53:22.000+0000", "updated": "2014-04-17T18:53:22.000+0000" }, { "id": "301337", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/5601 merged into master", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-17T22:28:48.000+0000", "updated": "2014-04-17T22:28:48.000+0000" }, { "id": "302088", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified the ability to scroll content in scrollview.\r\n\r\nTitanium SDK, build 3.3.0.v20140418162516\r\nNode.JS Version: v0.10.13\r\nNPM Version: 1.3.2\r\n├── acs@1.0.14\r\n├── alloy@1.3.1\r\n├── node-appc@0.2.0\r\n├── npm@1.3.2\r\n├── titanium@3.3.0-dev\r\n└── titanium-code-processor@1.1.1-beta1\r\nnpm -g ls titanium: /usr/local/lib\r\n└── titanium@3.3.0-dev (git://github.com/appcelerator/titanium.git#93414d143051df4578b7aa42670008e5ef02c422)\r\nXCode Version: 5.1.1\r\nDevices:\r\nNexus 4 Android version 4.4\r\niPhone 5S iOS 7.0", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-22T22:15:20.000+0000", "updated": "2014-04-22T22:15:20.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }