You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm using this in a static manner to show 3 parent cells, each of which have 1 child. Therefore there should be a total of 3 cells.
However, if I check the number of items on the dataSource it reports 4.
I'm getting an out of bounds error in scrollCellIfNeeded as it thinks the last indexPath does not exist, which it doesn't, so crashes out on me. This only occurs if I try to select the bottom parent when the middle one is open and the top is slightly off the screen.
I couldn't actually see why it thought there 4 items, not 3, however, fixing this specific bug is relatively easy.
Would a PR to resolve the issue be best or can you think of why this issue would be occurring? I think it's best to ensure the indexPath to scroll to is actually in the range of the table, rather than attempting to do so without checking.
The text was updated successfully, but these errors were encountered:
@VinceMikhailKearney Thanks for report this. It sounds like a calculation is not being made correctly. A PR with a fix would be very welcome if you're interested.
Hello!
So I'm using this in a static manner to show 3 parent cells, each of which have 1 child. Therefore there should be a total of 3 cells.
However, if I check the number of items on the dataSource it reports 4.
I'm getting an out of bounds error in scrollCellIfNeeded as it thinks the last indexPath does not exist, which it doesn't, so crashes out on me. This only occurs if I try to select the bottom parent when the middle one is open and the top is slightly off the screen.
I couldn't actually see why it thought there 4 items, not 3, however, fixing this specific bug is relatively easy.
Would a PR to resolve the issue be best or can you think of why this issue would be occurring? I think it's best to ensure the indexPath to scroll to is actually in the range of the table, rather than attempting to do so without checking.
The text was updated successfully, but these errors were encountered: