title: How to set height to ExtJs Grid?
body: <p>I have follow structure:</p>
  
  <pre><code>TabPanel-&gt;FormPanel-&gt;Grid
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/PSxfd.jpg" alt="enter image description here"></p>
  
  <p>And i want to set grid's height to all free space on formpanle. If i says <code>layout:</code>fit` in FormPanle first textfield get all space of formpanel. How to do what i want?</p>
  
  <p>FormPanel:</p>
  
  <pre><code>var search = new Ext.FormPanel({
                  labelAlign: 'top',
                  frame:true,
                  title: 'Поиск',
                  //layout:'fit',
                  viewConfig:{ forceFit: true },
                  //bodyStyle:'padding:5px 5px 0',
  </code></pre>
  
  <p>GridPanel:</p>
  
  <pre><code>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,
  </code></pre>