{ "id": "85469", "key": "TIMOB-7402", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T19:37:47.000+0000", "created": "2012-01-25T14:05:02.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity", "qe-and012312", "reprod" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "56028", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "93899", "key": "TIMOB-9802", "fields": { "summary": "Android: ScrollView - ScrollView scrolls horizontally when manually set to vertical layout", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "56475", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158220", "key": "TIMOB-22270", "fields": { "summary": "Ti.UI.ScrollView Test Suite: Titanium.UI.ScrollView Acceptance TIMOB-5861", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } }, { "id": "14784", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "81948", "key": "TIMOB-5861", "fields": { "summary": "iOS: scrollView is not updated correctly.", "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": "Trivial", "id": "5" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-09T19:37:47.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": "Details:\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:title=app.js}\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\tshowHorizontalScrollIndicator:true, showVerticalScrollIndicator:true,\r\n\twidth: 250, height: 100, top: 50,\r\n\tborderColor:'green', borderWidth:1,\r\n\tcontentWidth:1000, contentHeight:100\r\n});\r\n\r\nfor(var i=0; i<10; i++) {\r\n\tfor(var j=0; j<10; j++) {\r\n\t\tscrollView.add(Ti.UI.createLabel({\r\n\t\t\ttop:i*100, left:j*100,\r\n\t\t\twidth:100, height:100,\r\n\t\t\ttext:i+':'+j, textAlign:'center',\r\n\t\t\tcolor:'white',\r\n\t\t\tbackgroundColor:'#A0' + Number(i%2*8).toString(16) +'0'+ Number(8-j%2*8).toString(16)+'0',\r\n\t\t\tborderColor:'black', borderWidth:1 \r\n\t\t}));\r\n\t}\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\tscrollView.width = 100;\r\n\tscrollView.height = 250;\r\n\t\r\n\tscrollView.contentWidth = 100;\r\n\tscrollView.contentHeight = 1000;\r\n\r\n\tbutton.title = 'Click again';\r\n\t\r\n});\r\n\r\nscrollView.addEventListener('scroll', function() {\r\n\t//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\r\nExpected: Should be able to scroll vertically. Above code was able to run without issue in iOS.\r\n\r\nNote:\r\n* Did not test in Rhino\r\n* Bug appears in 1.8.0.1", "attachment": [], "flagged": false, "summary": "Android: ScrollView - ScrollView will not scroll when manually set to vertical layout", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 1.8.0.1, 1.8.1.v20120124200134\r\nRuntime: v8\r\nOS: Mac OS X Lion (10.7.2)\r\nTitanium Studio, build: 1.0.8.201201210622\r\nDevice: Nook Color (2.2)", "comment": { "comments": [ { "id": "239968", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue reproduces with sdk 3.0.2 and sdk 3.1.0 .", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-27T07:33:50.000+0000", "updated": "2013-02-27T07:33:50.000+0000" }, { "id": "422980", "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.v20170623141152\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\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-06-27T20:19:19.000+0000", "updated": "2017-06-27T20:19:19.000+0000" }, { "id": "453583", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. \r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T19:37:47.000+0000", "updated": "2020-01-09T19:37:47.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }