X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce3ed50dbe32d118321082db84c3a9abb047d5b7..3b322b4a1f58b62393a6531dd4466902df3dbe00:/samples/tab/test.cpp diff --git a/samples/tab/test.cpp b/samples/tab/test.cpp index be7797a5c3..1c2f6fd553 100644 --- a/samples/tab/test.cpp +++ b/samples/tab/test.cpp @@ -240,7 +240,7 @@ void MyFrame::OnSize(wxSizeEvent& event) m_view->SetViewRect(rect); - m_view->Layout(); + m_view->LayoutTabs(); // Need to do it a 2nd time to get the tab height with // the new view width @@ -252,7 +252,7 @@ void MyFrame::OnSize(wxSizeEvent& event) m_view->SetViewRect(rect); - m_view->Layout(); + m_view->LayoutTabs(); // Move all the panels to the new view position and size wxNode* node = m_view->GetWindows().First();