better min size

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2003-05-12 19:25:48 +00:00
parent 3e4c97edf2
commit 855ff63b6a
2 changed files with 2 additions and 2 deletions

View File

@@ -234,7 +234,7 @@ void wxChoice::MacHandleControlClick( WXWidget control , wxInt16 controlpart )
wxSize wxChoice::DoGetBestSize() const wxSize wxChoice::DoGetBestSize() const
{ {
int lbWidth = 100; // some defaults int lbWidth = GetCount() > 0 ? 20 : 100; // some defaults
int lbHeight = 20; int lbHeight = 20;
int wLine; int wLine;
#if TARGET_CARBON #if TARGET_CARBON

View File

@@ -234,7 +234,7 @@ void wxChoice::MacHandleControlClick( WXWidget control , wxInt16 controlpart )
wxSize wxChoice::DoGetBestSize() const wxSize wxChoice::DoGetBestSize() const
{ {
int lbWidth = 100; // some defaults int lbWidth = GetCount() > 0 ? 20 : 100; // some defaults
int lbHeight = 20; int lbHeight = 20;
int wLine; int wLine;
#if TARGET_CARBON #if TARGET_CARBON