title: Electron: Maximized browserWindow overlaps Window' taskbar
body: <p>I have problems with Electron BrowserWindow because when I call the function: win.maximize() the app overlaps Window' taskbar as if it were in full screen mode, but I set fullScreen: false.</p>
  
  <p>Here's the links of the screenshots!
  <a href="https://www.dropbox.com/s/a7b8h8ukaz4pf26/default%20window%20size.png?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/a7b8h8ukaz4pf26/default%20window%20size.png?dl=0</a>
  <a href="https://www.dropbox.com/s/8wf0jcv5kp04c25/maximized%20window.png?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/8wf0jcv5kp04c25/maximized%20window.png?dl=0</a></p>
  
  <p>Here's my code:</p>
  
  <p>main.js (the default electron window setting):</p>
  
  <pre><code>const {app, BrowserWindow} = require('electron');
  const path = require('path');
  
  let mainWindow;
  
  app.on('window-all-closed', function(){
      // Notice on OS X the application don't close when you quit window
      // Darwin is the platform name when OS X in loaded
      if(process.platform != 'darwin') {
          app.quit();
      }
  });
  
  app.on('ready', function() {
      mainWindow = new BrowserWindow({
          width: 700,
          height: 450,
          frame: false,
          resizable: false,
          backgroundColor: '#333333',
          'node-integration': true
      });
  
      mainWindow.loadURL(path.join(__dirname, '/index.html'));
      mainWindow.on('closed', function() {
          mainWindow = null;
      });
  });
  </code></pre>
  
  <p>default.js (it handles windows button: minimize, maximize and close):</p>
  
  <pre><code>const remote = require('electron').remote;
  
  (function(){
      function init(){
          document.getElementById('minimize-btn').addEventListener('click', function(){
              var window = remote.getCurrentWindow();
              window.minimize();
          });
  
          document.getElementById('maximize-btn').addEventListener('click', function(){
              var window = remote.getCurrentWindow();
              if (!window.isMaximized()) {
                  window.maximize();
              } else {
                  window.unmaximize();
              }
          });
  
          document.getElementById('close-btn').addEventListener('click', function(){
              var window = remote.getCurrentWindow();
              window.close();
          });
      }
  
      init();
  })();
  </code></pre>
  
  <p>Thank you for your help!</p>