Move notebook size code for mac to mac/notebook.cpp

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-01-11 14:34:38 +00:00
parent 5c92264250
commit 60ec3e58b8
4 changed files with 73 additions and 11 deletions

View File

@@ -92,26 +92,15 @@ wxSize wxNotebookBase::CalcSizeFromPage(const wxSize& sizePage)
// 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;