We have a viewport, and inside it we have a west region for navigation tree and a center region for content (grids, forms, etc.) which has a tab panel inside it.
We dynamically add content (tabs) to this tab panel, on click of any sub-menu item in navigation tree.
These tabs are not re-sized on window re-size.
The function to add tabs dynamically is:
function AddNewTab(title, url, closable) {
var tabs = Ext.getCmp('tabs');
tabs.add({
xtype: 'panel',
title: title,
closable: closable,
autoScroll: true,
layout: 'fit',
autoLoad: {
url: url,
scripts: true
}
});
tabs.setActiveTab(tabs.items.length - 1);
}
Update:
This is the normal state where every things is OK

But when we resize the window or collapse the right panel, tab panel won't re-size to fill the whole area.

not resizedstands for? - s.webbanditlayout: 'fit', does yourtabpanelitself havelayout: 'fit'also? - egerarduscardwhich impliesfit. I agree that we need some images to see exactly what's going on. - Eric