<p dir="auto">I just found window's size will be wrong when setup <code class="notranslate">use-content-size</code> with <code class="notranslate">x</code> and <code class="notranslate">y</code> together.</p>
<p dir="auto">When I write:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    var mainWindow = new BrowserWindow( {
        title: &quot;Fireball-x&quot;,
        width: 800,
        height: 600,
        'use-content-size': true,
        // x: 10,
        // y: 10,
    } );"><pre class="notranslate">    <span class="pl-k">var</span> <span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span> <span class="pl-kos">{</span>
        <span class="pl-c1">title</span>: <span class="pl-s">"Fireball-x"</span><span class="pl-kos">,</span>
        <span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span>
        <span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">,</span>
        <span class="pl-s">'use-content-size'</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
        <span class="pl-c">// x: 10,</span>
        <span class="pl-c">// y: 10,</span>
    <span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Things are correct, the page-content size will be 600 height and window size will be a little larger than it. But once I put x, y in the options above, <code class="notranslate">use-content-size</code> will loose its effect.</p>
<p dir="auto">I guess this is a bug in atom-shell. I test this in v0.22.2, in Mac OSX. I haven't test this in Windows yet.</p>
<p dir="auto">Not critical since one can set 'show: false' in the constructor and set the position later on before showing the BrowserWindow, but a bug nonetheless.</p>