{ "id": "122078", "key": "TIMOB-15702", "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": "2013-11-05T10:22:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:10.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": "1. scroll scrollableView\r\n2. suddenly scrollView makes jump to some strange position\r\n3. contentOffset(ie. scroll position) was changed, and 'scroll' event of scrollView was also triggered.\r\n\r\n\r\n\r\n\r\n{code:JavaScript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white',\r\n});\r\n\r\nvar scroll = Ti.UI.createScrollView({\r\n layout : 'vertical'\r\n});\r\n\r\nvar header = Ti.UI.createView({ height: 300, backgroundColor:'green' });\r\nscroll.add(header);\r\n\r\nvar views = [];\r\n\r\nfor (var k=0; k<3; k++) {\r\nvar rows = [];\r\nfor (var i=0; i<10; i++) {\r\n var row = Ti.UI.createTableViewRow({ height: 48 });\r\n var icon = Ti.UI.createImageView({ width: 32, height: 32, image: \"/appicon.png\" });\r\n row.push(icon);\r\n}\r\n\r\nvar table = Ti.UI.createTableView({\r\n data: rows,\r\n});\r\nviews.push(table);\r\n}\r\n\r\n\r\nvar scrollable = Ti.UI.createScrollableView({\r\n height : 400,\r\n views : views,\r\n});\r\n\r\nwin.add(scroll);\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: random contentOffset value of ScrollView when ScrollableView with TableView/ListView inside ScrollView", "creator": { "name": "9ruvie", "key": "9ruvie", "displayName": "Jungwook Son", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "9ruvie", "key": "9ruvie", "displayName": "Jungwook Son", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android version (2.3.X, 4.X.X)\r\ntitanium sdk 3.1.X, 3.2.0\r\n", "comment": { "comments": [ { "id": "278223", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you explain why you need this layout? This is generally discouraged.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-05T19:17:54.000+0000", "updated": "2013-11-05T19:17:54.000+0000" }, { "id": "278407", "author": { "name": "9ruvie", "key": "9ruvie", "displayName": "Jungwook Son", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am using ScrollableView inside ScrollView (solved in TIMOB-13610)\r\n\r\nScrollableView has 5 pages, and every page is consist of about 10~20 content rows.\r\nI have already implemented content part using ListView :)\r\n\r\nso I'm just interested in re-using my existing listview template.\r\n\r\n\r\nIf I create new content view code (that doesn't use ListView or TableView),\r\nthis problem can be solved. I have tested the latest version of 3.2.0.\r\nBut this will cost me a couple of days :)\r\n\r\n\r\nOnly one difference thing was, between ListView and View (in scrollableView inside scrollView),\r\ncontentOffset of the outer ScrollView is changed whenever ScrollableView scrolls to the next page. \r\n\r\n\r\n\r\n", "updateAuthor": { "name": "9ruvie", "key": "9ruvie", "displayName": "Jungwook Son", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-06T10:41:37.000+0000", "updated": "2013-11-06T10:43:58.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }