Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Johannes Persson on Dec 16, 2009 12:23
open dhtmlx forum
Margin in window

how can i set the margins to 0 when attachUrl with this code.

i dont use <div> because i want the cells to resize depending on browser size.

    <style>
        html, body {
            width: 100%;
            height: 100%;
            margin: 0px;
            overflow: hidden;
        }
    </style>
</head>
<body>
<script>
    var dhxLayout = new dhtmlXLayoutObject(document.body, "3t");
    dhxLayout.cells("a").hideHeader();
    dhxLayout.cells("a").setHeight(50);
    dhxLayout.cells("b").setText("Meny");
    dhxLayout.cells("c").hideHeader();
    dhxLayout.cells("b").setWidth(250);

    dhxLayout.cells("a").attachURL("mainmeny.php");
        
    dhxTree = dhxLayout.cells("b").attachTree(0);
    dhxTree.setImagePath("./administration/codebase/dhtmlxTree/imgs/csh_vista/");
    dhxTree.loadXML("./administration/common/tree.xml?etc="+new Date().getTime());
    
    dhxMenu = dhxLayout.cells("b").attachMenu();
dhxMenu.setIconsPath("./administration/codebase/dhtmlxMenu/imgs/menuitem/");
dhxMenu.loadXML("./administration/codebase/dhtmlxMenu/dhxmenu.xml?etc=" + new Date().getTime());
</script>
Answer posted by Alex (support) on Dec 17, 2009 02:05

What margin do you mean ?

If seems that iframes are attached to the layout cells without any margin http://www.dhtmlx.com/docs/products/dhtmlxLayout/samples/02_conf/11_attach_url.html