From 15f7dc660992b42cde2ffd12a26a4c411476e0e7 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 12 Jul 2016 10:05:32 -0700 Subject: [PATCH] Initialize to constraints to current constraints --- atom/browser/native_window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()));