RATreeView
RATreeView copied to clipboard
Indention of cells break down
Hi!
I'm having peculiar problem with the treeview. Somehow the indention of the cells is wrong the first time the tree is expanded. Like in this screenshot:
After collapsing and reopening the indention is correct:
I use MGSwipeTableCell for the cells because I need to attach various actions to each row. After swiping and revealing the action button and then swiping back the indention is again broken. See the following screenshots:
How can I 'reindent' the cell? I tried with:
-(void)treeView:(RATreeView *)treeView willDisplayCell:(UITableViewCell *)cell forItem:(id)item {
DDLogError(@"Displaying cell ::: level: %li :::: %@", (long)[treeView levelForCell:cell], cell);
}
but I get 0 as the level regardless of the actual level of the cell. Should this method return the actual level of the cell?
Hi @ristkari , Im having the same problem, I also tried setting IndentationLevel
but it does work either.
Same problem here...