View Full Version : iframe inside panel

20 Feb 2008, 5:01 AM
Hi , I have a panel inside border layout

when i try to add iframe with width , height 100% the panle don't scroll if the contents of the iframe is big ,it works fine otherwise

the code below 'pnlCenter' is my panel which is located inside border layout

var iframe1= Ext.DomHelper.append(document.body, {tag: 'iframe', id: id , frameBorder: 0, width: '100%', height: '100%'});



20 Feb 2008, 5:17 AM
Instead of doing this yourself you should really have a look at the ManagedIframePanel (http://extjs.com/forum/showthread.php?t=16590) extension.

20 Feb 2008, 5:25 AM
the point is not doing it my self or use managediframe , the point is why the panel not scrolling.

20 Feb 2008, 5:29 AM
If you set autoScroll:true the body will scroll, but you probably want the IFRAME to scroll. That will only work if you set the height and width of the IFRAME to the height and width of the panel body (and keep track of window resizes).

A lot of work I would say, that is why I recommended ManagedIframePanel.

20 Feb 2008, 8:44 AM
will try and let u know