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:
parent
c0e2e0c5d8
commit
9c74163386
@ -461,10 +461,7 @@ bool wxPropertyGridManager::Create( wxWindow *parent,
|
|||||||
name );
|
name );
|
||||||
Init2(style);
|
Init2(style);
|
||||||
|
|
||||||
// FIXME: this changes call ordering so wxPropertyGrid is created
|
SetInitialSize(size);
|
||||||
// immediately, before SetExtraStyle has a chance to be called. However,
|
|
||||||
// without it, we may get assertions if size is wxDefaultSize.
|
|
||||||
//SetInitialSize(size);
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user