Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Phil Wallingford on Mar 16, 2009 11:58
open dhtmlx forum
Resize layout that's initialized to document.body vs. grid

I would like a layout initialized to a div to automatically resize as it does when initialized to document.body.

When I initialize to document.body,
     var dhxLayout = new dhtmlXLayoutObject(document.body, "4U", "dhx_blue");
the layout resizes automatically.

When I initialize to a div
<div id="LayoutContainer" style="width:100%; height:100%;"></div>
    <script>
     var dhxLayout = new dhtmlXLayoutObject("LayoutContainer", "4U");
</script>
the layout does not resize automatically, even though the div does (by virtue of width and height at 100%).

Is this a bug or expected behavior?

Regards,

Phil
Answer posted by Alex (support) on Mar 17, 2009 07:11
Please, see the answer to your previous post http://dhtmlx.com/docs/products/kb/index.php?s=normal&q=8529