<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">12.0.5</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Ubuntu</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Ubuntu 21.04 x86_64 5.11.0-16-generic</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Having a transparency background.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Black background instead.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">This might be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="387241744" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/15947" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/15947/hovercard" href="https://github.com/electron/electron/issues/15947">#15947</a>, but the issue is closed by the bot saying the version reported is not longer supported. I use the latest version, 12.0.5 and this issue still exists tho...</p>
<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong> 7.1.1
<ul dir="auto">
<li>

</li>
</ul>
</li>
<li><strong>Operating System:</strong> Win 10
<ul dir="auto">
<li>

</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong> Dunno
<ul dir="auto">
<li>

</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>

<p dir="auto">The current detected width should be consistent.</p>
<h3 dir="auto">Actual Behavior</h3>

<p dir="auto">It isn't.</p>
<h3 dir="auto">To Reproduce</h3>



<p dir="auto">I don't have reproducible steps, but just fidgeting with <code class="notranslate">setMinimumSize</code> and resizing the window may work.</p>

<h3 dir="auto">Screenshots</h3>

<p dir="auto">This is what I'm seeing:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1812093/68557803-d7938f00-042e-11ea-8855-10dbae23dd20.png"><img width="885" alt="Screen Shot 2019-11-11 at 02 54 11" src="https://user-images.githubusercontent.com/1812093/68557803-d7938f00-042e-11ea-8855-10dbae23dd20.png" style="max-width: 100%;"></a></p>
<p dir="auto">You can see how the current width is lower than the current minimum width, I can resize the window to that dimension manually.</p>
<p dir="auto">Also, crucially, when resizing the window manually the top-right corner thing that tells you the size of the window thinks that it's only 694px wide, so it seems like different parts of the app compute different dimensions for the same window.</p>
<p dir="auto">Ps. I don't know what's about that transparent rectangle there, I think it's just Windows being Windows.</p>