title: How to set chrome app size relative to the screen
body: <p>Why is my code not working? I am trying to set the size of my app to 80% of the screen as I want it to fit on any monitor, if there is a better way I would like to know about it.</p>
  
  
  
  <p><code>background.js</code>:</p>
  
  <pre class="lang-js prettyprint-override"><code>chrome.app.runtime.onLaunched.addListener(function() {
      chrome.app.window.create('index.html', {
          'bounds': {
              'width': window.screen.availWidth*0.8, // *0.8 is not working
              'height': window.screen.availHeight*0.8
          }
      });
  });
  </code></pre>