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:
@@ -98,7 +98,8 @@ wxSize wxButton::DoGetBestSize() const
|
|||||||
|
|
||||||
int wBtn = m_label.Length() * charspace + 12 ;
|
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 ;
|
return sz ;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user