X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21fd55291b631eae9ccfd78866616aca6e573ebe..7a5e53abb3f9ea13eba2880972306446e4e21e83:/src/mac/carbon/button.cpp diff --git a/src/mac/carbon/button.cpp b/src/mac/carbon/button.cpp index 94610153a1..f13104ae68 100644 --- a/src/mac/carbon/button.cpp +++ b/src/mac/carbon/button.cpp @@ -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 ; }