X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b081046a6646bba07fb953adb06ebfe8ffffc3f7..1c7da10ebff58f95aa6eaad1a0bf8cd39a516b54:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index d00df75d1d..ef6dfe5b98 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -213,8 +213,14 @@ wxSize wxControl::DoGetBestSize() const wxSize wxControl::GetBestSpinerSize(const bool is_vertical) const { // take size according to layout - wxSize bestSize(GetSystemMetrics(is_vertical ? SM_CXVSCROLL : SM_CXHSCROLL), - GetSystemMetrics(is_vertical ? SM_CYVSCROLL : SM_CYHSCROLL)); + wxSize bestSize( +#if defined(__SMARTPHONE__) && defined(__WXWINCE__) + 0,GetCharHeight() +#else + GetSystemMetrics(is_vertical ? SM_CXVSCROLL : SM_CXHSCROLL), + GetSystemMetrics(is_vertical ? SM_CYVSCROLL : SM_CYHSCROLL) +#endif + ); // correct size as for undocumented MSW variants cases (WinCE and perhaps others) if (bestSize.x==0)