{ "id": "116461", "key": "ALOY-722", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "id": "153015", "key": "ALOY-1328", "fields": { "summary": "Refactor data-binding to be incremental rather then reset", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-06-26T06:15:51.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "alloy" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:26:09.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": "13605", "name": "Models" } ], "description": "per Tony Lukasavage, am submitting this to Jira.\r\n\r\nhttp://developer.appcelerator.com/question/153922/scrollableview-is-automatically-repositioning-itself-to-currentpage0-when-alloy-model-updates#comment-179293\r\n\r\nive got a ScrollableView, whose Label(s) contents are updating, as the Model's data is updating (every X seconds).\r\n\r\nThe ScrollableView, has 2 Views embedded. What's happening, is that if the user has swiped & is looking at the second View (in the ScrollableView - ie currentPage = 1) and then the Model data is updated via data binding - then the ScrollableView is automatically respositioning itself back to the first View (ie. currentPage = 0).\r\nObviously this is very annoying for the user, who then needs to swipe back to currentPage = 1.\r\n\r\nI've tried turning scrollingEnabled OFF and using \"swipe\" event to transition to the second View (currentPage=1). Not ideal as it doesnt fit with how a user expects this UI element to act. However didn't work anyway, as soon as the Model updates the ScrollView repositions straight back to currentPage=0\r\n\r\n\r\n{code:xml} \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code} ", "attachment": [], "flagged": false, "summary": "ScrollableView is automatically repositioning itself to currentPage=0 when Alloy Model updates", "creator": { "name": "angus_johnston@me.com", "key": "angus_johnston@me.com", "displayName": "Angus Johnston", "active": true, "timeZone": "Australia/Sydney" }, "subtasks": [], "reporter": { "name": "angus_johnston@me.com", "key": "angus_johnston@me.com", "displayName": "Angus Johnston", "active": true, "timeZone": "Australia/Sydney" }, "environment": "Using: Titanium Studio, build: 3.1.1.201306112235 OSX ; 10.8.3 ; testing in iOS simulator\r\n", "comment": { "comments": [ { "id": "260915", "author": { "name": "angus_johnston@me.com", "key": "angus_johnston@me.com", "displayName": "Angus Johnston", "active": true, "timeZone": "Australia/Sydney" }, "body": "hi, any updates on this as yet ?", "updateAuthor": { "name": "angus_johnston@me.com", "key": "angus_johnston@me.com", "displayName": "Angus Johnston", "active": true, "timeZone": "Australia/Sydney" }, "created": "2013-07-06T00:38:55.000+0000", "updated": "2013-07-06T00:38:55.000+0000" }, { "id": "260949", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No, not yet, and there likely will not be until after Alloy 1.2.0 is released, which is tentatively scheduled for mid-August.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-08T13:47:26.000+0000", "updated": "2013-07-08T13:47:26.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }