From: Robin Dunn Date: Wed, 13 Apr 2005 04:57:08 +0000 (+0000) Subject: Add room for the scrollbar X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/908f91bce9bfe08204447ed7217a38625ecacc64 Add room for the scrollbar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)*