Resize Layout based on document.body vs. div

I want to have a layout resize when the page it is on is resized. And I need to do this when the layout is initialized to a div.

If I initialize the grid to body.document,

     var dhxLayout = new dhtmlXLayoutObject(document.body, “4U”, “dhx_blue”);

the layout resizes as expected.

But when I initialize to a div,


var dhxLayout = new dhtmlXLayoutObject(“LayoutContainer”, “4U”);


Unfortunately, layout doesn’t support the described feature.

Possibly it will be added in the new layout version.