From: Stefan Csomor Date: Fri, 13 Mar 2009 18:23:04 +0000 (+0000) Subject: making sure toplevel default width/sizes are used X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b99c746cad47851c4a1d9409aaefa20abc94a255 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 --- diff --git a/src/osx/toplevel_osx.cpp b/src/osx/toplevel_osx.cpp index 738b5d607d..75380afe01 100644 --- a/src/osx/toplevel_osx.cpp +++ b/src/osx/toplevel_osx.cpp @@ -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 ) ;