PDA

View Full Version : how to resize a panel to ist container parent(a tabpanel)



diego_83
31 Jan 2008, 3:54 AM
i have to resize a panel loaded dinamycally to fill the tabpanel that it is its container.

does somebody know how to do it???


thanks in advance.

code:

var iframe = Ext.DomHelper.append(document.body,
{tag: 'iframe', id:iframejid, frameBorder: 0, src: iframesrc, name:iframejid});

var tab;
tabs.add(tab = new Ext.Panel({
region:'center',
id: iframejid,
title: nick,
border: 0,
closable: true,
deferredRender:false,
contentEl: iframe,
autosize:true
})).show();