[AC-6488] UITableView Error occurred after upgrading from titanium sdk 8.2.0.GA to 8.3.1.GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | koki_shigeyama |
Assignee | Abir Mukherjee |
Created | 2020-02-13T02:01:46.000+0000 |
Updated | 2020-02-20T12:28:11.000+0000 |
Description
I upgraded from sdk8.2.0.GA to 8.3.1.GA.
But there was a problem with UITableView.
An error occurs in selectItem processing.
Here is the code.
$.listDetailView.selectItem(category, section.items.length - 1);
Here is the error.
[ERROR] Script Error {
[ERROR] column = 32;
[ERROR] line = 1754;
[ERROR] message = "Attempted to scroll the table view to an out-of-bounds row (1) when there are only 1 rows in section 0. Table view: <UITableView: 0x7fe16d87bc00; frame = (0 0; 994 150); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x60000384b630>; layer = <CALayer: 0x600003728b40>; contentOffset: {0, 0}; contentSize: {994, 1270}; adjustedContentInset: {0, 0, 0, 0}; dataSource: <TiUIListView: 0x7fe16ff34440; frame = (15 76; 994 150); autoresize = W; layer = <CALayer: 0x600003728640>>>";
8.2.0.GA does not cause an error.
How can it be solved?
Can you share the rest of the relevant code? Preferably a standalone app I can use to reproduce the issue, so we can investigate better!