making sure toplevel default width/sizes are used

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-03-13 18:23:04 +00:00
parent 92a942606f
commit b99c746cad

View File

@@ -73,7 +73,10 @@ bool wxTopLevelWindowMac::Create(wxWindow *parent,
long style,
const wxString& name)
{
if ( !wxNonOwnedWindow::Create(parent, id, pos, size, style, name) )
int w = WidthDefault(size.x);
int h = HeightDefault(size.y);
if ( !wxNonOwnedWindow::Create(parent, id, pos, wxSize(w,h), style, name) )
return false;
wxWindow::SetLabel( title ) ;