I have a west region panel in a border layput that uses dockedItems. This panel is initially empty. If I dont specify any height for this panel, the dockedItem are placed one below the other. I want the panel to use entire available height and dock the items at the top and bottom of the panel. How can I do this?
JSFiddle: https://jsfiddle.net/kavitaC/rtopn7fd/
Ext.define('MyForm', {
extend: 'Ext.form.Panel',
renderTo:Ext.getBody(),
title: 'My Form',
//height: 800,
layout: 'fit',
initComponent: function() {
var me = this;
Ext.applyIf(me, {
dockedItems: [
{
xtype: 'toolbar',
dock: 'top',
items: [
{
xtype: 'filefield',
buttonOnly: true
}
]
},
{
xtype: 'toolbar',
dock: 'bottom',
items: [
{
xtype: 'filefield',
buttonOnly: true
}
]
}
]
});
me.callParent(arguments);
}
});
Ext.application({
name:'App',
launch:function(){
var form = Ext.create('MyForm');
}
});