I try to hide treecols in treeview in XUL by setting style to display: none. The labels of treeview rows also disappear however. How can I hide treecols while keeping rows visible?
I try to hide treecols in treeview in XUL by setting style to display:
Share
I guess that you mean to hide the column headers in a
treeelement. Thetreeelement supports hiding individual columns so when you usedisplay: nonestyle on a column header the entire column is hidden with it. Instead you should useheight: 0px; overflow: hidden;style on thetreecolselement – technically speaking it won’t be hidden then but it won’t be visible on screen either.