From: Stefan Csomor Date: Wed, 4 Jan 2006 11:49:01 +0000 (+0000) Subject: increase min size to make all scrollbar controls visible X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9761ab43386943ab53f1116d1e753a2eb5668261 increase min size to make all scrollbar controls visible git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/listbox.cpp b/src/mac/carbon/listbox.cpp index 715abf0db0..8d55c0f0ba 100644 --- a/src/mac/carbon/listbox.cpp +++ b/src/mac/carbon/listbox.cpp @@ -597,7 +597,7 @@ wxSize wxListBox::DoGetBestSize() const // don't make the listbox too tall (limit height to around 10 items) // but don't make it too small neither - lbHeight = (cy + 4) * wxMin( wxMax( GetCount(), 3 ), 10 ); + lbHeight = wxMax( (cy + 4) * wxMin( wxMax( GetCount(), 3 ), 10 ), 70 ); } return wxSize( lbWidth, lbHeight );