X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/10f2222ca37dba7e4faf791e48f2aca8110c43c6..ed05b5c6e1e04950f6cfaa1900567bffe64d9be3:/src/generic/notebook.cpp diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp index 11b4abfe09..ec05ba70b4 100644 --- a/src/generic/notebook.cpp +++ b/src/generic/notebook.cpp @@ -622,6 +622,17 @@ void wxNotebook::OnPaint(wxPaintEvent& WXUNUSED(event) ) m_tabView->Draw(dc); } +wxSize wxNotebook::CalcSizeFromPage(const wxSize& sizePage) const +{ + // MBN: since the total tab height is really a function of the + // width, this should really call + // GetTotalTabHeightPretendingWidthIs(), but the current + // implementation will suffice, provided the wxNotebook has been + // created with a sensible initial width. + return wxSize( sizePage.x + 12, + sizePage.y + m_tabView->GetTotalTabHeight() + 6 + 4 ); +} + wxRect wxNotebook::GetAvailableClientSize() { int cw, ch;