{ "id": "60856", "key": "TIMOB-224", "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": [ { "id": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:25:42.000+0000", "created": "2011-04-15T02:25:40.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "feature", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T18:13:45.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}
Add ability to scroll to a particular point in a table view -\ne.g.,
\ntableView.scrollToIndex(rowNumber);
\nwhere rowNumber is 0-based.
The native API has two other arguments. Animated (boolean) and\nscroll position (enum). Scroll position is Top, Middle, Bottom, and\nNone, where the first three is the position the row will take\nonscreen. If the scroll position is chosen to be 'None', the\nbehavior is to scroll only until the row is visible; if the row is\nalready visible, no scrolling is done. None is listed by Apple to\nbe the default.
\nProposal: optional second argument, where the default is\neffectively:
\n\ntableView.scrollToIndex(rowNumber,{'animated':false,'position':Ti.UI.ROW_POSITION_NONE}
\nQuestion: should animated be default false or default true? Name\nof row position constants.
Adding.
\nTitanium.UI.TABLEVIEW_POSITION_TOP
\nTitanium.UI.TABLEVIEW_POSITION_MIDDLE
\nTitanium.UI.TABLEVIEW_POSITION_BOTTOM
\nTitanium.UI.TABLEVIEW_POSITION_ANY
where:
\n- ANY moves the row to TOP if not visible and above the visible\narea - ANY moves the row to BOTTOM if not visible and below the\nvisible area - ANY does nothing if the row is already visible.
Function exists for iOS as of 1.6.0 RC1.
Changes to codebase has made this moot since then.