Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Phil Wallingford on Mar 16, 2009 11:53
open dhtmlx forum
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,
<div id="LayoutContainer" style="width:100%; height:100%;"></div>
    <script>
var dhxLayout = new dhtmlXLayoutObject("LayoutContainer", "4U");

Answer posted by Alex (support) on Mar 17, 2009 07:11

Hello, 

Unfortunately, layout doesn't support  the described feature.

Possibly it will be added in the new layout version.