diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index 1b5d0e4819..17adfc86ab 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -687,6 +687,9 @@ wxSize wxListBox::DoGetBestSize() const wListbox += 3*cx; + // Add room for the scrollbar + wListbox += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X); + // don't make the listbox too tall (limit height to 10 items) but don't // make it too small neither int hListbox = EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy)*