Layout size problem in iframe

I have downloaded the latest dhtmlx suite and followed the init instructions for attaching a layout to my page:

main_layout = new dhtmlXLayoutObject(document.body, ‘1C’);

This page is being displayed in an iframe and that is causing this issue (see “small resized issue.jpg”)


as soon as I highlight over the page, the layout resizes to the correct full size of the body (which was set up as width: 100% height: 100%)

When I display the page by itself directly in the browser without loading it in an iframe, it doesn’t have this problem but for some reason it’s resizing to that small image I attached in the iframe.

Please see the sample with correct full-screen initialization:

dhtmlxLayout/samples/01_init/inc/fullscreen_inner.html

Hi Alexandra,

i have the same problem, i didn’t find the sample dhtmlxLayout/samples/01_init/inc/fullscreen_inner.html.

can you help me?

Hi,

if you have downloaded our dhtmlxSuite, you may check the following demo:

dhtmlxSuite/dhtmlxLayout/samples/01_init/inc/fullscreen_inner.html