Complex layout doesn't work

Hi,

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

dhtmlx.com/docs/products/dht … .html#code

My test-page is here:

misha.fi/ubetter/formTest.html

It fails at the call

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

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

Thank you in advance.

Mike

Hi
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…!

Mike

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?

Mike

Hi

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