I have follow structure:

```
TabPanel->FormPanel->Grid

```

![enter image description here](https://i.stack.imgur.com/PSxfd.jpg)

And i want to set grid's height to all free space on formpanle. If i says `layout:`fit` in FormPanle first textfield get all space of formpanel. How to do what i want?

FormPanel:

```
var search = new Ext.FormPanel({
                labelAlign: 'top',
                frame:true,
                title: 'Поиск',
                //layout:'fit',
                viewConfig:{ forceFit: true },
                //bodyStyle:'padding:5px 5px 0',

```

GridPanel:

```
var searchTab = new Ext.grid.GridPanel({
    store: searchStore,
    region: 'center',
    cm: searchCm, 
    layout:'fit',
    selModel: new Ext.grid.RowSelectionModel(),
    stripeRows : true,
    height: 390,
    autoExpandColumn:'expColumn',
    loadMask: true,
    id: 'searchTab',
    title:'Найденные объекты',
    autoScroll: true,

```