RATreeView icon indicating copy to clipboard operation
RATreeView copied to clipboard

Indention of cells break down

Open ristkari opened this issue 10 years ago • 2 comments

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: screen shot 2014-08-27 at 17 20 35

After collapsing and reopening the indention is correct: screen shot 2014-08-27 at 17 20 45

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: screen shot 2014-08-27 at 17 20 54 screen shot 2014-08-27 at 17 21 03

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?

ristkari avatar Aug 27 '14 14:08 ristkari

Hi @ristkari , Im having the same problem, I also tried setting IndentationLevel but it does work either.

DeepakColworx avatar Oct 20 '16 11:10 DeepakColworx

Same problem here...

jfsagasti avatar Oct 24 '16 17:10 jfsagasti