Layout setText() disappears

I have been making the email demo you show in the Layout page to get figure out how it works. In the latest version the “My Working Place” header disappears when adding the side layout. In the video it’s there, but in actual use, it disappears.

	MainLayout=new dhtmlXLayoutObject(document.body,"3L");
	MainLayout.cells("a").setText("My Working Place");
	MainLayout.cells("b").hideHeader();
	MainLayout.cells("c").setText("");

	MainLayout.cells("a").setWidth(210);
	MainLayout.cells("b").setHeight(180);

alert("header still here");
	SideLayout=new dhtmlXLayoutObject(MainLayout.cells("a"),"2E");
alert("header gone");
	SideLayout.cells("a").hideHeader();
	SideLayout.cells("b").hideHeader();
	SideLayout.cells("a").setHeight(80);

After attaching layout into the cell, the header of this cell is hidden automatically.
So, you need to call showHeader method for the “a” cell of the main layout:

SideLayout=new dhtmlXLayoutObject(MainLayout.cells(“a”),“2E”);
MainLayout.cells(“a”).showHeader();

Yep. Figured it out the next day. Didn’t show it in the demo so didn’t look in the documentation.

Thanks. Keep the great products coming!