Hi, I am trying to disable collapse and resize cells in Layout:
function initLayout() {
var dhxLayout = new dhtmlXLayoutObject(“divLayout”, “4C”, “dhx_blue”);
dhxLayout.cells(“a”).setWidth(700);
dhxLayout.cells(“a”).setText(“Welcome to our website!”);
dhxLayout.cells(“b”).setText(“Our Projects”);
dhxLayout.cells(“c”).setText(“Our Projects”);
dhxLayout.cells(“d”).setText(“Our Projects”);
dhxLayout.setEffect(“resize”, false);
dhxLayout.setEffect(“collapse”, false);
var menu = dhxLayout.attachMenu();
}
But it is not working. I am still able to collapse and resize the cells. And how do I center align the layout in a web page? This doesn’t work: