]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/msgdlgg.cpp
wxMSW update for CW, wxMac updated
[wxWidgets.git] / src / generic / msgdlgg.cpp
index 06450f44a0b5e077f52556f4231fabf30ea5374a..19aefb7c06d7f0a4e25d7f8b1f6216f30a626c95 100644 (file)
@@ -92,10 +92,17 @@ wxGenericMessageDialog::wxGenericMessageDialog( wxWindow *parent,
     // 4) buttons
     topsizer->Add( CreateButtonSizer( style ), 0, wxCENTRE | wxALL, 10 );
 
+    SetAutoLayout( TRUE );
+    SetSizer( topsizer );
+    
     topsizer->SetSizeHints( this );
     topsizer->Fit( this );
-    SetSizer( topsizer );
-    SetAutoLayout( TRUE );
+    wxSize size( GetSize() );
+    if (size.x < size.y*3/2)
+    {
+        size.x = size.y*3/2;
+       SetSize( size );
+    }
 
     Centre( wxBOTH | wxCENTER_FRAME);