Electron Take Up 100% Of Screen (Not Full Screen) : <p>I've got an electron app, below is the <code>main.js</code> file:</p>

<pre><code>var app = require('electron').app;
var BrowserWindow = require('electron').BrowserWindow;

app.on('ready', function() {
    mainWindow = new BrowserWindow({
        height: 715,
        width: 1200,
        minWidth: 600,
        minHeight: 200,
        center: true
    });

    mainWindow.loadURL('file://' + __dirname + '/index.html');
});
</code></pre>

<p>As you can see, the width and height are specified. What I want is for the app to open, but take up all of the available screen (but <em>NOT</em> to be in full screen, such that the dock and tool bar of the OS are hidden).</p>

<p>In simple CSS this is done by using </p>

<pre><code>width:100%;
height:100%;
</code></pre>

<p>I want to be able to reproduce this in my electron app, although cannot seem to find any details on how to do it</p>

<p>Note: <code>fullscreen: true</code> is not what I am looking for, as that makes the app open so that the dock and toolbar are hidden</p>

<p>Can anyone help?</p>
