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:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user