X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6fe7685d0cab06a5a7bc3d43e6845b2146db1af0..2e334012b4babcf063fbe79540c4c154cd54ab2b:/src/generic/choicdgg.cpp diff --git a/src/generic/choicdgg.cpp b/src/generic/choicdgg.cpp index d037f6255d..fa3c19415b 100644 --- a/src/generic/choicdgg.cpp +++ b/src/generic/choicdgg.cpp @@ -302,11 +302,8 @@ bool wxAnyChoiceDialog::Create(wxWindow *parent, wxListBoxBase *wxAnyChoiceDialog::CreateList(int n, const wxString *choices, long styleLbox) { - wxSize size = wxDefaultSize; - if (wxSystemSettings::GetScreenType() > wxSYS_SCREEN_PDA) - size = wxSize(300, 200); return new wxListBox( this, wxID_LISTBOX, - wxDefaultPosition, size, + wxDefaultPosition, wxDefaultSize, n, choices, styleLbox ); } @@ -541,12 +538,8 @@ bool wxMultiChoiceDialog::TransferDataFromWindow() wxListBoxBase *wxMultiChoiceDialog::CreateList(int n, const wxString *choices, long styleLbox) { - wxSize size = wxDefaultSize; - if (wxSystemSettings::GetScreenType() > wxSYS_SCREEN_PDA) - size = wxSize(300, 200); - return new wxCheckListBox( this, wxID_LISTBOX, - wxDefaultPosition, size, + wxDefaultPosition, wxDefaultSize, n, choices, styleLbox ); }