]> git.saurik.com Git - wxWidgets.git/commitdiff
improved dialog size which created the listbox a bit too small
authorKarsten Ballüder <ballueder@usa.net>
Wed, 23 Jun 1999 14:31:49 +0000 (14:31 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Wed, 23 Jun 1999 14:31:49 +0000 (14:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/choicdgg.cpp

index 2529df3ccdb409e54c237c48929b9e85c3f95b6f..f5bbca706f651f0f6c92728e5d83c11a6d5d2120 100644 (file)
@@ -248,9 +248,9 @@ bool wxSingleChoiceDialog::Create( wxWindow *WXUNUSED(parent), const wxString& m
     
     int y = message_size.y + 15;
     
-    int listbox_height = wxMin( 160, n*20 );
+    int listbox_height = wxMin( 160, n*20 + 40);
     
-    wxListBox *listBox = new wxListBox( this, wxID_LISTBOX, wxPoint(10, y), wxSize(240, listbox_height), 
+    wxListBox *listBox = new wxListBox( this, wxID_LISTBOX, wxPoint(10, y), wxSize(340, listbox_height), 
                                         n, choices, wxLB_ALWAYS_SB );
     listBox->SetSelection( m_selection );
     if (clientData)