X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa5973eef45ad0353175ee79a763ce9db8d53e05..878711c01c1b9ad5b97d35f379a048b8ce1bfb49:/src/common/sizer.cpp diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index 5a9c11a99f..21f311e59b 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -1446,6 +1446,9 @@ static void GetStaticBoxBorders( wxStaticBox *box, { // this has to be done platform by platform as there is no way to // guess the thickness of a wxStaticBox border +#ifdef __WXCOCOA__ + box->GetBordersForSizer(borderTop,borderOther); +#else // __WXCOCOA__ #ifdef __WXGTK__ if ( box->GetLabel().IsEmpty() ) *borderTop = 5; @@ -1454,6 +1457,7 @@ static void GetStaticBoxBorders( wxStaticBox *box, *borderTop = box->GetCharHeight(); *borderOther = 5; +#endif // __WXCOCOA__ } void wxStaticBoxSizer::RecalcSizes()