* Electron Version: 2.0.2
* Operating System (Platform and Version): Win10 x64 version 1803
* Last known working Electron version: 1.9.0

**Expected Behavior**
Calling win.setResizable(false) and then win.setResizable(true) should return the window to it's original state. Specifically, it should not change the result of win.isMaximizable().

**Actual behavior**
Calling win.setResizable(false) and then win.setResizable(true) results in the window not being maximizable. The maximize button is disabled and win.isMaximizable returns false.

**To Reproduce**
In any electron application with a window that is resizable, call win.setResizable(false) and then win.setResizable(true). The window will now be impossible to maximize.
atom/browser/native_window_views.cc
const gfx::Rect& bounds) {
  if (changed_widget != widget())
    return;
  
  
  const auto new_bounds = GetBounds();
  if (widget_size_ != new_bounds.size()) {
    if (browser_view()) {
      const auto flags = static_cast<NativeBrowserViewViews*>(browser_view())
                             ->GetAutoResizeFlags();
      int width_delta = 0;
      int height_delta = 0;
      if (flags & kAutoResizeWidth) {
        width_delta = new_bounds.width() - widget_size_.width();
      }
      if (flags & kAutoResizeHeight) {
        height_delta = new_bounds.height() - widget_size_.height();
      }
      auto* view = browser_view()->GetInspectableWebContentsView()->GetView();
      auto new_view_size = view->size();
      new_view_size.set_width(new_view_size.width() + width_delta);
      new_view_size.set_height(new_view_size.height() + height_delta);
      view->SetSize(new_view_size);
    }
    NotifyWindowResize();
    widget_size_ = new_bounds.size();
  }
}
void NativeWindowViews::DeleteDelegate() {