{ "id": "93899", "key": "TIMOB-9802", "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": null, "resolutiondate": null, "created": "2012-06-26T05:12:24.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core", "qe-and060112", "reprod" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "56028", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "85469", "key": "TIMOB-7402", "fields": { "summary": "Android: ScrollView - ScrollView will not scroll when manually set to vertical layout", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:29.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This is a regression.Was not occuring in 2.0.2.\r\n\r\nDetails:\r\nIf the scrollView.width and scrollView.height are manually set to a vertical layout i.e. do not use the layout property, vertical scrollView will not scroll.\r\n\r\nSteps to reproduce:\r\n1. Launch code in app.js:\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n layout:'vertical',\r\n backgroundColor:'#fff'\r\n});\r\n \r\nvar scrollView = Ti.UI.createScrollView({\r\n showHorizontalScrollIndicator:true, showVerticalScrollIndicator:true,\r\n width: 250, height: 100, top: 50,\r\n borderColor:'green', borderWidth:1,\r\n contentWidth:1000, contentHeight:100\r\n});\r\n \r\nfor(var i=0; i<10; i++) {\r\n for(var j=0; j<10; j++) {\r\n scrollView.add(Ti.UI.createLabel({\r\n top:i*100, left:j*100,\r\n width:100, height:100,\r\n text:i+':'+j, textAlign:'center',\r\n color:'white',\r\n backgroundColor:'#A0' + Number(i%2*8).toString(16) +'0'+ Number(8-j%2*8).toString(16)+'0',\r\n borderColor:'black', borderWidth:1 \r\n }));\r\n }\r\n}\r\n \r\nvar button = Ti.UI.createButton({title:'Flip', width:100, height:50});\r\nbutton.addEventListener('click', function() {\r\n // bug is here\r\n scrollView.width = 100;\r\n scrollView.height = 250;\r\n \r\n scrollView.contentWidth = 100;\r\n scrollView.contentHeight = 1000;\r\n \r\n button.title = 'Click again';\r\n \r\n});\r\n \r\nscrollView.addEventListener('scroll', function() {\r\n //Ti.API.info('Offset: (' + scrollView.contentOffset.x + ', ' + scrollView.contentOffset.y + ')');\r\n});\r\nwin.add(scrollView);\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n2. Press Flip\r\n3. Try scrolling\r\n\r\nActual: ScrollView will not scroll vertically, but is will scroll horizontally.\r\nExpected: Should be able to scroll vertically and not horizontally.", "attachment": [], "flagged": false, "summary": "Android: ScrollView - ScrollView scrolls horizontally when manually set to vertical layout", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Titanium SDK: 2.1.0.v20120625134154\r\nTested with Titanium  Studio: 2.1.0.201206221045\r\nDevice - Android 2.2.2 LG-P970,Samung GALAXY Tab 620 Android 3.2\r\nMachine OS - MAC 10.7.3", "comment": { "comments": [ { "id": "200301", "author": { "name": "psingh", "key": "psingh", "displayName": "Payminder Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Titanium Studio: 2.1.0.201206251749\r\nMobile SDK: 2.1.0.v20120626074155\r\nOS: X Lion\r\nDevice: Android Emulator, Samsung Nexus S.\r\n\r\nReproducible\r\n\r\nUnable to scroll vertically. ", "updateAuthor": { "name": "psingh", "key": "psingh", "displayName": "Payminder Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-26T10:02:40.000+0000", "updated": "2012-06-26T10:04:31.000+0000" }, { "id": "200304", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried 2.0.2 and 2.0.1, and I was not able to scroll vertically on older versions either.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-26T10:06:06.000+0000", "updated": "2012-06-26T10:06:06.000+0000" }, { "id": "200350", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "My notes: tried this without the vertical layout property, this caused no change in behavior, so not a factor. Tried this test with 2.0.2 on Droid 3 and Galaxy Tab 10.1. The result was that after the \"flip\" button is clicked, the scrollview could not scroll either horizontal or vertical. This shows that this is not a regression.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-26T11:30:00.000+0000", "updated": "2012-06-26T11:30:28.000+0000" }, { "id": "200352", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "According to Max, Android allows only one scroll direction.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-26T11:31:06.000+0000", "updated": "2012-06-26T11:31:06.000+0000" }, { "id": "423930", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-11T17:57:19.000+0000", "updated": "2017-07-11T17:57:19.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }