Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-360] scrollTo on Table View doesn't appear to work

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2011-04-19T11:20:29.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsdefect, ios, iphone
ReporterKevin Whinnery
AssigneeKevin Whinnery
Created2011-04-15T02:27:48.000+0000
Updated2012-02-09T10:56:27.000+0000

Description

The scrollTo function on table views doesn't appear to do anything - I've tried calling it from a few different places and it has not had any effect. The code to duplicate the issue is here:

http://pastie.org/788956">http://pastie.org/788956

and can replace the custom table view example in the Kitchen Sink for verification. Community issue:

http://support.appcelerator.net/discussions/titanium-mobile-discussion/1500-uitableviewscrolltoindex-not-working"> http://support.appcelerator.net/discussions/titanium-mobile-discuss...

Comments

  1. Jimmy Thrasher 2011-04-15

    I'd love for this to be fixed. For now I'm hacking it with scrollToTop(row * cell height).

    Incidentally, in investigating this, I see that UITableView scrollToRowAtIndexPath:atScrollPosition:animated: is being called correctly. My log message in TiUITableView scrollToIndex:etc:

    [DEBUG] Scrolling to row at indexPath: 2 indexes [0, 4], position: 1, animated: 1

    (where 0,4 is the correct index path for that row)

    Jimmy

  2. Thomas Huelbert 2012-02-09

    closing as we are not able to reproduce using master (1.9.0 Feb 9 2012 09:46 rd47ce8a4)

JSON Source