I’m trying to create a layout-in-layout using the following script. What I want is a fixed header panel in (a), a fixed navigation panel in (b), and an embedded layout in ©.
When any one of the comments is removed the inner layout disappears. I’ve fixed the height of the header in (a), but if I try to hide its header, or fix the width of (b), only the “lMaster” layout is shown.
What am I doing wrong?
Hello,
please, check the cases in the methods names. The following code works correctly:
var lMaster = new dhtmlXLayoutObject(document.body, “3T”);
lMaster.cells(“a”).setHeight(150);
lMaster.cells(“a”).fixSize(false,true);
lMaster.cells(“b”).setWidth(200);
lMaster.cells(“b”).fixSize(true,false);
lMaster.cells(“a”).hideHeader();
lMaster.cells(“b”).hideHeader();
lMaster.cells(“c”).hideHeader();
var lPage = new dhtmlXLayoutObject(lMaster.cells(“c”), “2B”);