X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6fe7685d0cab06a5a7bc3d43e6845b2146db1af0..fc5d9e38ee002c024be3019e37b63f1a1d88e7c2:/src/generic/choicdgg.cpp?ds=sidebyside 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 ); }