DHTMLX Docs & Samples Explorer

Dynamic Height in MultiMode

Source
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxaccordion_dhx_skyblue.css">
<link rel="stylesheet" type="text/css" href="../../../dhtmlxWindows/codebase/dhtmlxwindows.css">
<link rel="stylesheet" type="text/css" href="../../../dhtmlxWindows/codebase/skins/dhtmlxwindows_dhx_skyblue.css">
<script src="../../codebase/dhtmlxcommon.js"></script>
<script src="../../codebase/dhtmlxcontainer.js"></script>
<script src="../../codebase/dhtmlxaccordion.js"></script>
<script src="../../../dhtmlxWindows/codebase/dhtmlxwindows.js"></script>
 
<div id="winVP" style="position: relative; height: 500px; border: #cecece 1px solid; margin: 10px;"></div>
<script>
var dhxWins,
w1,
dhxAccord;
function doOnLoad() {
    dhxWins = new dhtmlXWindows();
    dhxWins.enableAutoViewport(false);
    dhxWins.attachViewportTo("winVP");
    dhxWins.setImagePath("../../../dhtmlxWindows/codebase/imgs/");
    w1 = dhxWins.createWindow("w1", 20, 30, 400, 350);
    w1.setText("dhtmlxWindow with dhtmlxAccordion");
    dhxAccord = w1.attachAccordion();
    dhxAccord.loadJSON({
        multi_mode: true,
        cells: [{
            id: "a1",
            text: "Main Page",
            height: "*"
        }, {
            id: "a2",
            text: "Site Navigation",
            height: "*"
        }, {
            id: "a3",
            text: "Support & Feedback",
            height: 70
        }]
        });
}
</script>