PDA

View Full Version : iFrame not resizing in a tabpanel



funz51
24 Apr 2008, 6:43 AM
I am trying to resize an iframe when inside a tab.

I have a border viewport setup with a tabpanel in the center region.
I have an iframe as the HTML in each tab.
Then I add a tab calling a url that calls a JSP that has another viewport in it. I use a viewport so I have a nice toolbar.
BUT, when the tab renders, there is a scrollbar that appears as the size of the tabpanel on the right.
I need to know how big the iframe should be set initially, and how to change the iframe size if the browser size changes.

(the scroll bar also shows when an iframe is defined in a tab initially in the TabPanel -items:html:)

thanks for all your help. I love this stuff!

funZ

ifcwlme
25 Apr 2008, 7:49 PM
use width="100%" height="100%" in your iframe tag

Animal
25 Apr 2008, 11:32 PM
NO, just add one of these http://extjs.com/forum/showthread.php?t=32310

directly to the TabPanel

akannu
29 Jun 2009, 8:14 AM
NO, just add one of these http://extjs.com/forum/showthread.php?t=32310

directly to the TabPanel

Hi Animal,
The links seems to be broken. Do you have the right link? Thanks

Animal
29 Jun 2009, 11:58 AM
You need a ManagedIframePanel