From 9c741633864e504f065782f9b4420e9868c0e970 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sat, 15 Nov 2014 17:27:24 +0000 Subject: [PATCH] Fix setting initial size of wxPropertyGridManager. wxPG manager is now created with proper size (based on its best size) even if default size is requested. (r78149 is a prerequisite for this patch.) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/manager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/propgrid/manager.cpp b/src/propgrid/manager.cpp index 8718e34e15..bc94bb6274 100644 --- a/src/propgrid/manager.cpp +++ b/src/propgrid/manager.cpp @@ -461,10 +461,7 @@ bool wxPropertyGridManager::Create( wxWindow *parent, name ); Init2(style); - // FIXME: this changes call ordering so wxPropertyGrid is created - // immediately, before SetExtraStyle has a chance to be called. However, - // without it, we may get assertions if size is wxDefaultSize. - //SetInitialSize(size); + SetInitialSize(size); return res; }