]> git.saurik.com Git - wxWidgets.git/commitdiff
making sure toplevel default width/sizes are used
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 13 Mar 2009 18:23:04 +0000 (18:23 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 13 Mar 2009 18:23:04 +0000 (18:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/toplevel_osx.cpp

index 738b5d607d38f899c0fe7b3a7f2889393379748d..75380afe01b3ed6e7eb584db495f3cfbe187415c 100644 (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 ) ;