I'm using Sencha Architect, and have yet to figure out how to get my TabPanel content to take up 100% of the container that the TabPanel lives in.
This is the code I'm using now:
Ext.define('MyApp.view.MyViewport', {
extend: 'Ext.container.Viewport',
layout: {
type: 'border'
},
initComponent: function() {
var me = this;
Ext.applyIf(me, {
items: [
{
xtype: 'container',
region: 'north',
height: 60
},
{
xtype: 'container',
region: 'center',
items: [
{
xtype: 'tabpanel',
activeTab: 0,
items: [
{
xtype: 'panel',
layout: {
type: 'fit'
},
title: 'Tab 1',
items: [
{
xtype: 'panel',
title: 'My Panel'
}
]
},
{
xtype: 'panel',
title: 'Tab 2'
},
{
xtype: 'panel',
title: 'Tab 3'
}
]
}
]
}
]
});
me.callParent(arguments);
}
});
I'm completely at a loss as to how to achieve this, and I haven't been able to find the answer in the Ext.js documentation.