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
This commit is contained in:
Artur Wieczorek 2014-11-15 17:27:24 +00:00
parent c0e2e0c5d8
commit 9c74163386

View File

@ -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;
}