Complex layout doesn't work


Despite hard work and lots of trying I haven’t succeeded in making my layout work.

I tried to make a local copy of the example at … .html#code

My test-page is here:

It fails at the call

myForm = dhxLayout.cells(“a”).attachForm(formData);

And I can’t figure out why. Any ideas?

Thank you in advance.


Try to attach dhtmlxform.js (and related form files) after dhtmlxcontainer.js

Yes, thank you! Much better! Now I’ll have to figure out why the form shows up in the first cell only…!


You are welcome :slight_smile:

Last bug ironed out…works like a charm now!

One further question: How is the size (height) of the middle cell determined? Is it possible to ask for an “autofit”, that is, getting a cell that is just as big (high) as its contents?



assuming layout height is h, then
middle_h = h - h_a - h_c
h_a = 180 // dhxLayout.cells(“a”).setHeight(180)
h_c = 180 // dhxLayout.cells(“c”).setHeight(180)