- 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
extensions::SizeConstraints content_constraints = GetContentSizeConstraints();
  extensions::SizeConstraints window_constraints;
  if (content_constraints.HasMaximumSize())
    window_constraints.set_maximum_size(
        ContentSizeToWindowSize(content_constraints.GetMaximumSize()));
  if (content_constraints.HasMinimumSize())
    window_constraints.set_minimum_size(
        ContentSizeToWindowSize(content_constraints.GetMinimumSize()));
  return window_constraints;
}
void NativeWindow::SetContentSizeConstraints(
    const extensions::SizeConstraints& size_constraints) {
  size_constraints_ = size_constraints;
}
extensions::SizeConstraints NativeWindow::GetContentSizeConstraints() {
  return size_constraints_;
}
void NativeWindow::SetMinimumSize(const gfx::Size& size) {
  extensions::SizeConstraints size_constraints;
  size_constraints.set_minimum_size(size);
  SetSizeConstraints(size_constraints);
}
gfx::Size NativeWindow::GetMinimumSize() {
  return GetSizeConstraints().GetMinimumSize();
}
void NativeWindow::SetMaximumSize(const gfx::Size& size) {