set best size after filling the control with strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -184,6 +184,9 @@ bool wxListBox::Create(wxWindow *parent,
|
||||
Append(choices[i]);
|
||||
}
|
||||
|
||||
// now we can compute our best size correctly, so do it if necessary
|
||||
SetBestSize(size);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user