From: Robin Dunn Date: Thu, 23 Sep 2010 21:12:40 +0000 (+0000) Subject: Fix sending a size event for the displayed page when the notebook is sized X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ff94c563ed58629ea0b4b7f2130af879b7050431 Fix sending a size event for the displayed page when the notebook is sized git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/notebook_osx.cpp b/src/osx/notebook_osx.cpp index 57e034bc6f..d78e3b4040 100644 --- a/src/osx/notebook_osx.cpp +++ b/src/osx/notebook_osx.cpp @@ -373,9 +373,7 @@ void wxNotebook::OnSize(wxSizeEvent& event) for ( unsigned int nPage = 0; nPage < nCount; nPage++ ) { wxNotebookPage *pPage = m_pages[nPage]; - pPage->SetSize(rect); - if ( pPage->GetAutoLayout() ) - pPage->Layout(); + pPage->SetSize(rect, wxSIZE_FORCE_EVENT); } // If the selected page is hidden at this point, the notebook