{ "id": "64066", "key": "TIMOB-3434", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-05-02T21:47:28.000+0000", "created": "2011-04-15T03:45:09.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "default", "defaultscrollposition", "position", "scroll", "scrollview", "tbs-1.9.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T21:47:28.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
Howdy!
\nAfter/during creating a scrollView, I would like to be able to\nset the default starting position of the content viewed.
\ne.g.
\n
\nvar scrollView = Ti.UI.createScrollView({
});
\nor
\n
\nvar scrollView = Ti.UI.createScrollView({
}); scrollView.scrollTo(250, 0); <-- works but straight after\nthis event is fired, another scroll event sets the position to 0,0.\nI think the \"resetting/default scroll event\" occurs when the window\nis opened.
\n// add more content to scrollView
win.add(scrollView);
\nwin.open();
I think the property \"defaultScrollPosition: [250, 0]\" would be\ngreat.
\nTested on the KitchenSink example - scroll_views_tabs.js
\nThanks in advance!
\nTM