diff --git a/clientgui/BOINCBaseView.cpp b/clientgui/BOINCBaseView.cpp index a1215a6ad7..a4d14da0b3 100644 --- a/clientgui/BOINCBaseView.cpp +++ b/clientgui/BOINCBaseView.cpp @@ -77,7 +77,7 @@ CBOINCBaseView::CBOINCBaseView( wxNotebook* pNotebook, wxWindowID iHtmlWindowID, itemFlexGridSizer->Add(m_pTaskPane, 1, wxGROW|wxALL, 1); itemFlexGridSizer->Add(m_pListPane, 1, wxGROW|wxALL, 1); - SetSizer(itemFlexGridSizer); + SetSizerAndFit(itemFlexGridSizer); SetAutoLayout(TRUE); } diff --git a/clientgui/MainFrame.cpp b/clientgui/MainFrame.cpp index e8e1a533a0..70f4d6575e 100644 --- a/clientgui/MainFrame.cpp +++ b/clientgui/MainFrame.cpp @@ -278,6 +278,8 @@ bool CMainFrame::CreateNotebook() pPanelSizer->Add(0, 4); pPanelSizer->Add(pNotebookSizer, 1, wxEXPAND); + + // create the various notebook pages CreateNotebookPage( new CViewProjects( m_pNotebook ) ); CreateNotebookPage( new CViewWork( m_pNotebook ) ); CreateNotebookPage( new CViewTransfers( m_pNotebook ) ); @@ -285,10 +287,10 @@ bool CMainFrame::CreateNotebook() CreateNotebookPage( new CViewResources( m_pNotebook ) ); - // Have the panel calculate everything after the6 pages are created so + // Have the panel calculate everything after the pages are created so // the Mac can display the Html control width correctly - pPanel->SetAutoLayout(true); pPanel->SetSizerAndFit(pPanelSizer); + pPanel->SetAutoLayout(TRUE); wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::CreateNotebook - Function End"));