I am trying to implement enableMultiLineItems to work so I don’t get horizontal scroll bars. Here is my code: <script type="text/javascript">
prod_tree = new dhtmlXTreeObject("prod_div", "100%", "100%", 0);
prod_tree.setSkin("dhx_skyblue");
prod_tree.setImagePath("../dhtmlxComponents/dhtmlxTree/codebase/imgs/csh_dhx_skyblue/");
prod_tree.enableCheckBoxes(1);
prod_tree.enableThreeStateCheckboxes(true);
prod_tree.enableTreeImages(false);
prod_tree.enableMultiLineItems("148px");
prod_tree.enableTreeLines(false);
prod_tree.attachEvent("onCheck",function(id,state){
document.getElementById("sx").value = getSectionsChecked();
})
prod_tree.loadXML("./includes/prod.xml");
</script>
When I open the tree, The longer leaves are cut off, not wrapped asI expected.
The problem wasn’t reproduced locally. We need the complete demo to recreate the problem.
You may create a ticket with the sample at the support.dhtmlx.com/
Support helped me fix this problem. Evidently the skyblue skin is not compatible with multi line trees. Once we took out the reference to the skyblue skin, it worked fine.