{ "id": "86389", "key": "AC-3062", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-09T14:44:08.000+0000", "created": "2012-02-13T03:35:43.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:48:06.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": [], "description": "Hello\r\n\r\nHere is the problem : \r\n- create a scrollableView\r\n- add an event listener to 'scroll' event\r\n- scroll to first view\r\n- delete all views\r\n- myScrollableView.currentPage = -1 instead of 0\r\n\r\n...\r\nmyScrollableView.removeView(myScrollableView.views[0]);\r\nmyScrollableView.removeView(myScrollableView.views[0]);\r\nmyScrollableView.removeView(myScrollableView.views[0]);\r\nTi.API.info(player.ui.mainView.currentPage);\r\n\r\nThank you\r\n", "attachment": [], "flagged": false, "summary": "currentPage in scrollableView", "creator": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "subtasks": [], "reporter": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "environment": "Titanium mobile sdk 1.8.0.1", "comment": { "comments": [ { "id": "189864", "author": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Are you trying to do this, as i have done in the code attached?\r\n\r\n{code}var win = Ti.UI.createWindow();\r\n \r\nvar view1 = Ti.UI.createView({ backgroundColor:'#123' });\r\nvar view2 = Ti.UI.createView({ backgroundColor:'#246' });\r\nvar view3 = Ti.UI.createView({ backgroundColor:'#48b' });\r\n \r\nvar scrollableView = Ti.UI.createScrollableView({\r\n views:[view1,view2,view3],\r\n showPagingControl:true\r\n});\r\n\r\n\r\nscrollableView.addEventListener('scroll',function(){\r\nscrollableView.removeView(scrollableView.views[0]);\r\nscrollableView.removeView(scrollableView.views[1]);\t\r\nTi.API.info(scrollableView.currentPage);\r\n});\r\n \r\n\r\nwin.add(scrollableView);\r\nwin.open();{code}", "updateAuthor": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T13:39:33.000+0000", "updated": "2012-04-04T13:39:33.000+0000" }, { "id": "190372", "author": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "posted a feedback to the answer", "updateAuthor": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T14:44:08.000+0000", "updated": "2012-04-09T14:44:08.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }