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:
@@ -136,12 +136,14 @@ wxSize wxButton::DoGetBestClientSize() const
|
|||||||
|
|
||||||
// for compatibility with other ports, the buttons default size is never
|
// for compatibility with other ports, the buttons default size is never
|
||||||
// less than the standard one
|
// less than the standard one
|
||||||
|
#ifndef __WXX11__
|
||||||
if ( !(GetWindowStyle() & wxBU_EXACTFIT) )
|
if ( !(GetWindowStyle() & wxBU_EXACTFIT) )
|
||||||
{
|
{
|
||||||
wxSize szDef = GetDefaultSize();
|
wxSize szDef = GetDefaultSize();
|
||||||
if ( width < szDef.x )
|
if ( width < szDef.x )
|
||||||
width = szDef.x;
|
width = szDef.x;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return wxSize(width, height);
|
return wxSize(width, height);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user