MGR: Fix bug in initial layout of Simple View project panel.

This commit is contained in:
Charlie Fenton 2014-08-30 04:15:31 -07:00
parent a2ad7e7f50
commit 1536c74a81
1 changed files with 9 additions and 0 deletions

View File

@ -153,9 +153,18 @@ CSimpleProjectPanel::CSimpleProjectPanel( wxWindow* parent ) :
bSizer1->AddSpacer(ADJUSTFORYDPI(10));
// Temporarily insert a dummy entry so sizer can
// get correct height of m_ProjectSelectionCtrl
CSkinSimple* pSkinSimple = wxGetApp().GetSkinManager()->GetSimple();
wxBitmap* defaultBM = pSkinSimple->GetProjectImage()->GetBitmap();
m_ProjectSelectionCtrl->Insert("", *defaultBM, 0, (void*)NULL);
this->SetSizer( bSizer1 );
this->Layout();
// Remove the dummy entry
m_ProjectSelectionCtrl->Delete(0);
m_TaskAddProjectButton->SetToolTip(wxEmptyString);
m_TaskAddProjectButton->Disable();
}