electron BrowserWindow min height and width not working after hide() show() methods
<p>1.Step</p>

<pre><code>mainWindow = new BrowserWindow({
  width: 1200,
  height: 700,
  center: true,
  'min-height': 700,
  'min-width': 1200,
  webPreferences: {nodeIntegration:true}});
mainWindow.loadURL(HOME_URL);
</code></pre>

<p>2.Step (some event occur and i want to temporary hide main window and show another(createFacebookWindow() fn is already loadingURL))</p>

<pre><code>mainWindow.hide();



facebookWindow = require('./modules/auth/views.js').createFacebookWindow();

FB Window settings ({
                                              width: 1200,
                                              height: 700,
                                              center: true,
                                              'min-height': 700,
                                              'min-width': 1200,
                                               webPreferences: {nodeIntegration:false}})
</code></pre>

<p>3.Step (another event occur i destroy fb window and show main window)</p>

<pre><code> facebookWindow.close();

 facebookWindow.on('closed', function() {
    facebookWindow = null;
    mainWindow.show();
    //I tried below options it doesn't work
    //mainWindow.setSize(1200, 700);
    //mainWindow.setMinimumSize(1200, 700);
</code></pre>

<p>Summary:</p>

<p>So actually after these steps, when I show mainWindow back it doesn't remember mainWindow settings min-height and min-width are not working.</p>

<p>When facebookWindow is not opened, all is fine, so something must happening during switching with windows. Maybe something is done in wrong order ?</p>