]> git.saurik.com Git - wxWidgets.git/commitdiff
increase min size to make all scrollbar controls visible
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Jan 2006 11:49:01 +0000 (11:49 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Jan 2006 11:49:01 +0000 (11:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/listbox.cpp

index 715abf0db01bfa23c18bd83361aa8ca5804ff296..8d55c0f0ba0137871485e5f8d05e62a0074b4283 100644 (file)
@@ -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 );