<p dir="auto">I <a href="https://github.com/Microsoft/vscode/issues/52194" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/52194/hovercard">raised this against VS Code</a>, but they advise it's Electron's doing. When I go to select a debug session and there are several, the dropdown menu grows upwards but there's limited space on the screen so it ends up being quite difficult to use.</p>
<ul dir="auto">
<li>Electron Version: 1.7.12</li>
<li>Operating System (Platform and Version): macOS High Seirra</li>
<li>Last known working Electron version: Unknown</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
Drop-down lists near the edge of the screen should expand away from the edge of the screen.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
Drop-down renders upwards when at the top of the screen, making a tiny scrollable menu.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Open VS Code; and start several debugging sessions, then open the drop-down that lets you select between them.</p>
<p dir="auto"><strong>Screenshots</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1078012/41534917-3d68229c-72f8-11e8-98d9-bebdb9bc7428.png"><img src="https://user-images.githubusercontent.com/1078012/41534917-3d68229c-72f8-11e8-98d9-bebdb9bc7428.png" alt="screen shot 2018-06-18 at 1 03 26 pm" style="max-width: 100%;"></a></p>
<h3 dir="auto">Preflight Checklist</h3>
<p dir="auto">I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.<br>
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.<br>
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.</p>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">12.0.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Windows 10</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">12.0.0</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Electron version: 12.0.0<br>
<strong>Problem:</strong> Need to disable new windows popup,  for this use the  event and its working but this is deprecated in Electron 12.0</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="win.webContents.on('new-window'', event =&gt; {
    event.preventDefault()
  })"><pre class="notranslate"><code class="notranslate">win.webContents.on('new-window'', event =&gt; {
    event.preventDefault()
  })
</code></pre></div>
<p dir="auto">So instead of above used the suggested alternative handler but this is not getting called during new windows open or mouse mid click.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="win.webContents.setWindowOpenHandler(() =&gt; {
            return { action: 'deny' };
     });"><pre class="notranslate"><code class="notranslate">win.webContents.setWindowOpenHandler(() =&gt; {
            return { action: 'deny' };
     });
</code></pre></div>
<p dir="auto"><strong>Expected behavior:</strong>  On mouse mid click new windows creation should prevented.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><strong>Actual</strong> : New window opens on mouse windows click.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>