diff --git a/src/qt/notebook.cpp b/src/qt/notebook.cpp index ade55ec5f1..06c5439436 100644 --- a/src/qt/notebook.cpp +++ b/src/qt/notebook.cpp @@ -14,6 +14,7 @@ #include "wx/qt/private/winevent.h" #include +#include class wxQtTabWidget : public wxQtEventSignalHandler< QTabWidget, wxNotebook > { @@ -162,7 +163,10 @@ bool wxNotebook::InsertPage(size_t n, wxWindow *page, const wxString& text, wxSize wxNotebook::CalcSizeFromPage(const wxSize& sizePage) const { - return sizePage; + QTabBar *tabBar = m_qtTabWidget->tabBar(); + const QSize &tabBarSize = tabBar->size(); + return wxSize(sizePage.GetWidth(), + sizePage.GetHeight() + tabBarSize.height()); } bool wxNotebook::DeleteAllPages()