X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b54e41c5298568d48a7a1fa532b2653288a8713c..2fe0ef8a1e4a61e3baab7f6e512b28543ad4c97c:/src/common/nbkbase.cpp?ds=sidebyside diff --git a/src/common/nbkbase.cpp b/src/common/nbkbase.cpp index 436364a179..527fcc27db 100644 --- a/src/common/nbkbase.cpp +++ b/src/common/nbkbase.cpp @@ -91,10 +91,17 @@ 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; + if ( HasFlag(wxNB_LEFT) || HasFlag(wxNB_RIGHT) ) + { sizeTotal.x += 90; + sizeTotal.y += 10; + } else + { + sizeTotal.x += 10; sizeTotal.y += 40; + } return sizeTotal; }