Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Robby on Nov 04, 2009 05:20
open dhtmlx forum
iFrame autofit

Dear Support Team,
Is it posibble to load external site (iFrame) to the small cell for example use 3J Layout and it will load to c cell, but the iframe is autofil with the cell, so no need to scrool again (if open google, we see the tiny google in there) ?

Please give me suggestion if it can

thx
Answer posted by Alex (support) on Nov 04, 2009 06:42
Hello,

you can use attachURL method - the iframe is attached and occupies the whole cell: http://www.dhtmlx.com/docs/products/dhtmlxLayout/samples/02_conf/11_attach_url.html

If you meant to automatically increase the cell height depending on iframe content - it isn't possible.

But you can increase the default cell height using setHeight method:

    layout.cells("c").setHeight(300);


Answer posted by Robby on Nov 09, 2009 03:16

Dear Alex,

Thanks a lot for the answer :)

regard,

Robby