BU_EXACTFIT adapted

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-06-17 08:06:33 +00:00
parent a8eff06059
commit 37de49a322

View File

@ -98,7 +98,8 @@ wxSize wxButton::DoGetBestSize() const
int wBtn = m_label.Length() * charspace + 12 ;
if (wBtn > sz.x) sz.x = wBtn;
if (wBtn > sz.x || ( GetWindowStyle() & wxBU_EXACTFIT) )
sz.x = wBtn;
return sz ;
}