]> khamidou — GitHub mirrors - electron.git/commitdiff
views: Make size constraints work immediately after set
authorCheng Zhao <zcbenz@gmail.com>
Tue, 6 Oct 2015 08:16:02 +0000 (16:16 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 6 Oct 2015 08:16:02 +0000 (16:16 +0800)
atom/browser/native_window_views.cc

index 6d89ee1d06e3f9a5fb0d09967eecd77ac7f90e2f..4c8d014b1ec905a5a3d1dc84e82cba7315cd8db5 100644 (file)
@@ -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;