title: extjs Panel fit layout
body: <p>I have a panel and i am rendering it into a container. I want the <code>panel</code> to fit into the <code>container</code> height and don't want to specify the height of the <code>panel</code>.</p>
  
  <p>But don't seem to work is there a way I could do it.</p>
  
  <p><strong>CODE SNIPPET</strong></p>
  
  <pre><code>&lt;div id=Div style="width: 100%; height: 100%;"&gt;&lt;/div&gt;
  var newPanel = new Ext.Panel({
      id: 'newPanel',
      renderTo: 'Div',
      layout: 'fit',
      border: false,
      items: [anotherPanel]
  })
  </code></pre>
  
  <p>any ideas please help </p>