ludo / jquery-treetable

jQuery plugin to show a tree structure in a table
http://ludo.cubicphuse.nl/jquery-treetable
GNU General Public License v2.0
741 stars 278 forks source link

Wrong indentation for wrapped lines #151

Open felixbarny opened 10 years ago

felixbarny commented 10 years ago

If the content of a tree column is too large, the indentation is not preserved for the wrapped lines. indent

I've resolved this issue by disabling the indenter...

expanderTemplate: "<a class='expander' href='#'>&nbsp;</a>"
.indenter {
    display: inline !important
}
.expander {
    margin-left: -19px;
}

...and by overwriting Node.proptotype.render

      ...

      this.treeCell[0].style.paddingLeft = "" + ((this.level() + 1) * settings.indent + 19) + "px";

      return this;
    };
andig commented 9 years ago

Same problem here. The span used as indenterTemplate doesn't cover the full height which causes the problem (since 2.0 I think?).

cropredy commented 8 years ago

I have same problem, looked at #142 closed issue but couldn't make that work. More details at Stackoverflow question](http://stackoverflow.com/questions/37221357/jquery-treetable-alignment-issue-when-text-wraps-to-next-line). Is there a pure CSS solution for this?

DanTheBritish commented 8 years ago

Any update? Would be good if the library could handle this.