From: Cheng Zhao Date: Tue, 6 Oct 2015 08:16:02 +0000 (+0800) Subject: views: Make size constraints work immediately after set X-Git-Tag: v0.33.7~26^2~4^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f607e81facac1dd27665ef4a81469ff1ea4bdd82;p=electron.git views: Make size constraints work immediately after set --- diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 6d89ee1d..4c8d014b 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -390,6 +390,7 @@ gfx::Size NativeWindowViews::GetContentSize() { void NativeWindowViews::SetContentSizeConstraints( const extensions::SizeConstraints& size_constraints) { NativeWindow::SetContentSizeConstraints(size_constraints); + window_->OnSizeConstraintsChanged(); #if defined(USE_X11) if (resizable_) old_size_constraints_ = size_constraints;