Hi all,
I'm having a bit of an issue getting a particular layout to work as expected. At the root level I have a panel and I wish this to contain a 'container' (with a couple of combos) and below this a tab panel.
What is odd is that if I put the container below the tabpanel, the layout of the panel expands to contain all the elements (as I'd expect) but if I put the container above, the panel cuts itself short (see screenshot).
Do I have something wrong in the properties/configs of these elements? as far as I can see they all seem pretty vanilla in how I've implemented them.
If it's any help, here's the code:
This is the items collection in question, begins with a panel, has a function to create the first item in the panel (the container with the two combos) and then a tab panel below:
Code:
items: [{
xtype: 'panel',
layout: 'fit',
bodyPadding: 10,
border: false,
items: [
this.createTypeIssueControls(),
{
xtype: 'tabpanel',
items: [
//to keep the code down I've removed the function which creates my 'details' panel here
{
title: 'Annex A',
items: [{
xtype: 'panel',
title: 'soup',
height: 200
}]
},
{
title: 'Annex B',
items: [{
xtype: 'panel',
title: 'green eggs',
height: 200
}]
},
{
title: 'Annex C',
items: [{
xtype: 'panel',
title: 'ham',
height: 200
}]
},
{
title: 'Annex D',
items: [{
xtype: 'panel',
title: 'badger',
height: 200
}]
}] // END TABPANEL ITEMS
}] //END DETAIL PANEL
}]
Just for completeness, this is the method 'createTypeIssueControls'
Code:
createTypeIssueControls: function () {
return {
xtype: 'panel',
layout: 'column',
bodyPadding: 10,
margin: '0 0 10 0',
items: [{
columnWidth: 0.5,
border: false,
items: [{
xtype: 'combobox',
fieldLabel: 'Certificate Type',
id: 'certTypeId',
name: 'certTypeId',
store: this.certTypeStore,
displayField: 'Name',
valueField: 'Id'
}]
},
{
columnWidth: 0.5,
border: false,
items: [{
xtype: 'combobox',
fieldLabel: 'Issue',
id: 'issueNumber',
name: 'issueNumber',
store: this.certificateStore,
displayField: 'Number',
valueField: 'Id'
}]
}]
};
}
Here is the explanatory screenshot:
ExtLayout.png