Categories | Question details Back To List | ||
DHTMLXTREE not being rendered in IE7 DHTMLXTREE is not being rendered in IE7 in a site that I have. If you want to see the website: www.maps2go.com.br The code: <div id="treeboxbox_tree"></div> <script type="text/javascript"> tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0); tree.enableCheckBoxes(1); tree.enableThreeStateCheckboxes(true); //THE CODE BELOW IS JUST TO SET CONTAINERS HEIGHT ACCORDING TO TREE HEIGHT tree.attachEvent("onOpenEnd",function(){ var alturaMapa = 448; var h = this.allTree.scrollHeight; var diferenca; diferenca = h - 190; if (h == 325){ document.getElementById("controls").style.height = 448 + "px"; document.getElementById("map").style.height = 460 + "px"; } else { document.getElementById("controls").style.height = (alturaMapa + diferenca) + "px"; document.getElementById("map").style.height = (460 + diferenca) + "px"; } return true; }); tree.setImagePath("http://www.maps2go.com.br/img/skins/csh_vista/"); tree.setXMLAutoLoading("http://www.maps2go.com.br/xml/opcoesPesquisa.xml"); tree.loadXML("http://www.maps2go.com.br/xml/opcoesPesquisa.xml"); </script> The code above works on IE 8, Chrome, Firefox. It doesn't work in IE7. Can you help me? Any help is appreciated. Thanks! Carlos Answer posted by Alex (support) on Nov 05, 2009 05:21 Hello, please, check that tree container has desired size. It seems that the div, where tree initializes, doesn't have width. <div id="treeboxbox_tree" style="overflow: hidden;"> try to add width here: <div id="treeboxbox_tree" style="overflow: hidden;width:100%;"> Answer posted by Carlos on Nov 05, 2009 10:26 Perfect! It worked! THANK YOU Microsoft for making a browser so "good" like IE!!! |