title: Chrome : Webview not resizing
body: <p>I am testing the <code>&lt;webview&gt;</code> element in Chrome and I have gone through the documentation but I cannot figure out why the <code>Webview</code> is not resizing when the parent window does.</p>
  
  <p><strong>Index.Html</strong></p>
  
  <pre><code>&lt;body&gt;
  &lt;webview  src="http://website.com" style="width:1010px; height:700px" minwidth="1010" minheight="700" autosize="on""&gt;&lt;/webview&gt;
  
  &lt;script src="index.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>background.js</strong></p>
  
  <pre><code>chrome.app.runtime.onLaunched.addListener(function() {
  chrome.app.window.create('index.html', {
  'bounds': {
    'width': 1010,
    'height': 700
   }});});
  </code></pre>
  
  <p><strong>Index.js</strong></p>
  
  <pre><code>$(function() {
  function resizeWebView() {
      $('webview').get(0).width = $(window).width();
      $('webview').get(0).height = $(window).height();
  }
  $(window).resize(resizeWebView);
  resizeWebView();
  });
  </code></pre>
  
  <p>I tried also removing the <code>autosize=on</code> as recommended but it does not work.
  Another question how to disable the main window (Embedder) from resizing.
  Thanks</p>