set size if it's initially == wxDefaultSize() in MSWCreateControl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -156,7 +156,7 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
|
|||||||
InheritAttributes();
|
InheritAttributes();
|
||||||
|
|
||||||
// set the size now if no initial size specified
|
// set the size now if no initial size specified
|
||||||
if ( w == 0 || h == 0 )
|
if ( w <= 0 || h <= 0 )
|
||||||
{
|
{
|
||||||
SetBestSize(size);
|
SetBestSize(size);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user