Some themes round the edges of the buttons, overwriting any text that

goes all the way to the edges.  Give the button a few extra pixels to
work around that.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-03-11 22:44:36 +00:00
parent 67c4abe329
commit 391ddf408d
2 changed files with 8 additions and 0 deletions

View File

@@ -212,6 +212,10 @@ wxSize wxButton::DoGetBestSize() const
{
wxSize ret( wxControl::DoGetBestSize() );
#ifndef __WXGTK20__
ret.x += 10; // add a few pixels for sloppy (but common) themes
#endif
if (!HasFlag(wxBU_EXACTFIT))
{
if (ret.x < 80) ret.x = 80;

View File

@@ -212,6 +212,10 @@ wxSize wxButton::DoGetBestSize() const
{
wxSize ret( wxControl::DoGetBestSize() );
#ifndef __WXGTK20__
ret.x += 10; // add a few pixels for sloppy (but common) themes
#endif
if (!HasFlag(wxBU_EXACTFIT))
{
if (ret.x < 80) ret.x = 80;