- Electron version: `1.2.3`
- Operating system: `Windows`

``` js
remote.getCurrentWindow().setMaximumSize(300, 300);
remote.getCurrentWindow().setMinimumSize(50, 50);
console.info('No Errors');
```

When combining remote Minimum and Maximum size calls the maximum size fails to set.

If you change the sample code to be

``` js
setTimeout(() => remote.getCurrentWindow().setMaximumSize(300, 300), 200);
remote.getCurrentWindow().setMinimumSize(50, 50);
console.info('No Errors');
```

So we wait a bit (make the two calls not at the same time) then the maximum size is set as expected

atom/browser/native_window.cc
return aspect_ratio_extraSize_;
}
void NativeWindow::SetAspectRatio(double aspect_ratio,
                                  const gfx::Size& extra_size) {
  aspect_ratio_ = aspect_ratio;
  aspect_ratio_extraSize_ = extra_size;
}
void NativeWindow::RequestToClosePage() {
  bool prevent_default = false;
  FOR_EACH_OBSERVER(NativeWindowObserver,
                    observers_,
                    WillCloseWindow(&prevent_default));
  if (prevent_default) {
    WindowList::WindowCloseCancelled(this);
    return;
  }
  
  
  
  
  if (window_unresposive_closure_.IsCancelled())
    ScheduleUnresponsiveEvent(5000);
  if (web_contents()->NeedToFireBeforeUnload())
    web_contents()->DispatchBeforeUnload(false);
  else
    web_contents()->Close();
}
void NativeWindow::CloseContents(content::WebContents* source) {