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:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user