Is there any way to set the height of the treeview to “auto” so that it expands to fit whatever # of nodes are expanded?
try to set the height of a tree to 100 %.
See the example:
<div id="treeboxbox_tree" style="width:250px; height:100%;background-color:#f5f5f5;border :1px solid Silver;"></div>