ExpandableCell
ExpandableCell copied to clipboard
Expanded Cells not appearing if another cell is expanded
I have a tableview with 2 sections. Each section contains only one row (Completed and ongoing orders). Whenever i click on an expandable cell, it opens normally, but if it is expanded, the other one won't expand unless the first one is closed. I debugged it and it is calling the expandedCellsForRowAt and heightsForExpandedRowAt correctly and is returning all the expanded cells that should appear, but they simply won't appear. Can anyone help me please ? Thanks
@FaridHaddad The only workaround is to put every expandable cells in one section. If the cells are in the same section, there`s no problem. The problem only happens when the expandable cells are in different sections and you try to expand them.
also happens when there is only 1 section and most probably in the case when there is only 1 cell expanded under each expandable cell
The problem is in the ExpandableProcessor insert function. If the newly expanded cells aren't in the same section, the function returns without inserting them. Since the author says he doesn't have time to address issues, I don't see a fix forthcoming. You will need to call closeAll() before returning a new set of cells from expandedCellsForRowAt.
nvm i use ExpyTableView
@younatics I believe PR https://github.com/younatics/ExpandableCell/pull/53 fixed the issue discussed here :)