I need to make the dhtmlXLayoutObject (“2U”) object to be resized if the window size is changed.
This is not working.
If the window size is lesser than the default value then Scrolls should get appeared in the Layout Object.
And if the size of window is increased, the size of Layout object should increase in proportion.
I tried this successfully with “dhtmlXGridObject”. There is a method for that as “enableAutoHeight”.
Is there any such method for “dhtmlXLayoutObject”. I tried using few methods however, no luck.
viz. setAutoSize(“a;b”, “a;b”); and dhxLayout.setSizes();
I observed that -
- We cannot have “div” (Layout Object) width and height in “%” percentage (sizes allowed only in “px”).
This is again a barrier to set the sizes in proportion to the window size.
- We cannot avoid the sizes to be mentioned in the div, so that it can be handled from attached event function.
Please suggest
Attached is the file with code.
P.S.: Further I need to attach Tree and TabBar in the Cells. Would appreciate if the solution works in that scenario as well.
myTestTab.zip (735 Bytes)