<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2762.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2762.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Resize the window to smaller, then back to about its original size or even bigger.</p>
<p dir="auto">Close the window.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The window should simply disappear.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">For a fraction of a second, tons of horizontal and vertical lines, which look like the border of the window at its previous sizes, are painted inside the window area.</p>
<p dir="auto">This suspiciously looks like some leftover widgets that don't get properly cleaned up during a resize, potentially consuming various resources (and maybe causing who knows what other problems).</p>
<p dir="auto">(Could be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="507385021" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/3207" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/3207/hovercard" href="https://github.com/microsoft/terminal/issues/3207">#3207</a>?)</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5750745/66922099-afc72c00-f026-11e9-8ef2-d568a8223cda.png"><img src="https://user-images.githubusercontent.com/5750745/66922099-afc72c00-f026-11e9-8ef2-d568a8223cda.png" alt="WT-closing" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17381223/64915108-20fa9180-d792-11e9-9ed4-8266c3307e0a.PNG"><img src="https://user-images.githubusercontent.com/17381223/64915108-20fa9180-d792-11e9-9ed4-8266c3307e0a.PNG" alt="3" style="max-width: 100%;"></a></p>