Create wxPropertyGridManager with default size in the propgrid sample

Since r78150 wxPropertyGridManager can be created with default size with no issues.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Artur Wieczorek
2014-12-12 22:40:00 +00:00
parent 6ba0f3016b
commit cebc3503d2

View File

@@ -1914,10 +1914,7 @@ void FormMain::CreateGrid( int style, int extraStyle )
// event handling will obviously be broken.
PGID, /*wxID_ANY*/
wxDefaultPosition,
wxSize(100, 100), // FIXME: wxDefaultSize gives assertion in propgrid.
// But calling SetInitialSize in manager changes the code
// order to the grid gets created immediately, before SetExtraStyle
// is called.
wxDefaultSize,
style );
m_propGrid = pgman->GetGrid();