Buttons need to be small on PDAs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-04-08 21:46:57 +00:00
parent 87439dd8ae
commit f90d461a37

View File

@@ -136,12 +136,14 @@ wxSize wxButton::DoGetBestClientSize() const
// for compatibility with other ports, the buttons default size is never
// less than the standard one
#ifndef __WXX11__
if ( !(GetWindowStyle() & wxBU_EXACTFIT) )
{
wxSize szDef = GetDefaultSize();
if ( width < szDef.x )
width = szDef.x;
}
#endif
return wxSize(width, height);
}