diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index c084f448a38b..a71b0924b2ab 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -209,7 +209,7 @@ gfx::Size NativeWindow::GetContentSize() { void NativeWindow::SetSizeConstraints( const extensions::SizeConstraints& window_constraints) { - extensions::SizeConstraints content_constraints; + extensions::SizeConstraints content_constraints(GetContentSizeConstraints()); if (window_constraints.HasMaximumSize()) content_constraints.set_maximum_size( WindowSizeToContentSize(window_constraints.GetMaximumSize()));