From: Robert Roebling Date: Mon, 8 Apr 2002 21:46:57 +0000 (+0000) Subject: Buttons need to be small on PDAs. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f90d461a37856fab62b89fe7c3f7e7d5f2dab4c2 Buttons need to be small on PDAs. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/univ/button.cpp b/src/univ/button.cpp index f98b725e51..23a4d96eea 100644 --- a/src/univ/button.cpp +++ b/src/univ/button.cpp @@ -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); }