Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ron Dunn on Jun 26, 2009 19:51
open dhtmlx forum
Outer layout disappearing when sizes changed

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 (c).

<script>

    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");

</script>

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?
Answer posted by Alex (support) on Jun 30, 2009 01:39

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");