khan4019 / tree-grid-directive

Need one or more maintainer for this! comment or email me if you are interested
http://khan4019.github.io/tree-grid-directive/test/treeGrid.html
347 stars 183 forks source link

First column can overwrite contents of other cells #141

Open devnu11 opened 7 years ago

devnu11 commented 7 years ago

It is reasonably easy to force with some   in the first column, and filling other columns with buttons

Anyways the resolution for me was to switch use the following css. I didn't want to do a pull request, b/c I am guessing there is a reason for the relative positioning vs. the solution below. And i wanted to understand before doing a pull request.

.tree-grid .level-1 td:first-child { padding-left: 0px; }

.tree-grid .level-2 td:first-child { padding-left: 20px; }

.tree-grid .level-3 td:first-child { padding-left: 40px; }

.tree-grid .level-4 td:first-child { padding-left: 60px; }

.tree-grid .level-5 td:first-child { padding-left: 80px; }

.tree-grid .level-6 td:first-child { padding-left: 100px; }

.tree-grid .level-7 td:first-child { padding-left: 120px; }

.tree-grid .level-8 td:first-child { padding-left: 140px; }

.tree-grid .level-9 td:first-child { padding-left: 160px; }