change to a tiny minimal value for DoGetBestSize in case of existing entries

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2003-03-06 21:38:12 +00:00
parent 8dd336cba3
commit 637988a4f6
2 changed files with 2 additions and 2 deletions

View File

@@ -211,7 +211,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

@@ -211,7 +211,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