X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b54e41c5298568d48a7a1fa532b2653288a8713c..ab5fe83396c13f9fbf01630c52adf4df7607cbfe:/src/common/nbkbase.cpp?ds=sidebyside diff --git a/src/common/nbkbase.cpp b/src/common/nbkbase.cpp index 436364a179..ccc78efd57 100644 --- a/src/common/nbkbase.cpp +++ b/src/common/nbkbase.cpp @@ -91,10 +91,28 @@ wxSize wxNotebookBase::CalcSizeFromPage(const wxSize& sizePage) // this was just taken from wxNotebookSizer::CalcMin() and is, of // course, totally bogus - just like the original code was wxSize sizeTotal = sizePage; + + // Mac has large notebook borders. + if ( HasFlag(wxNB_LEFT) || HasFlag(wxNB_RIGHT) ) + { sizeTotal.x += 90; +#ifdef __WXMAC__ + sizeTotal.y += 28; +#else + sizeTotal.y += 10; +#endif + } else + { +#ifdef __WXMAC__ + sizeTotal.x += 34; // This is OK for Aqua. + sizeTotal.y += 46; +#else + sizeTotal.x += 10; sizeTotal.y += 40; +#endif + } return sizeTotal; }