From: Stefan Csomor Date: Thu, 17 Jun 2004 08:06:33 +0000 (+0000) Subject: BU_EXACTFIT adapted X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/37de49a3225b9e87ec950f73d361335c73ad3f7f?ds=inline BU_EXACTFIT adapted git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 ; }