MGR: Fix project list layout for Mac; ellipse long items by size instead of by number of characters

svn path=/trunk/boinc/; revision=23734
This commit is contained in:
Charlie Fenton 2011-06-16 11:40:39 +00:00
parent dfbb543325
commit 98ec7e7d7b
1 changed files with 4 additions and 4 deletions

View File

@ -484,8 +484,12 @@ void CProjectInfoPage::OnProjectSelected( wxCommandEvent& WXUNUSED(event) ) {
CProjectInfo* pProjectInfo = (CProjectInfo*)m_pProjectsCtrl->GetClientData(m_pProjectsCtrl->GetSelection());
wxString strURL = pProjectInfo->m_strURL;
EllipseStringIfNeeded(strURL, m_pProjectDetailsURLCtrl);
// Populate the project details area
m_pProjectDetailsDescriptionCtrl->SetValue(pProjectInfo->m_strDescription);
m_pProjectDetailsURLCtrl->SetLabel(strURL);
m_pProjectDetailsURLCtrl->SetURL(pProjectInfo->m_strURL);
m_pProjectDetailsSupportedPlatformWindowsCtrl->Hide();
@ -516,10 +520,6 @@ void CProjectInfoPage::OnProjectSelected( wxCommandEvent& WXUNUSED(event) ) {
EllipseStringIfNeeded(strOrganization, m_pProjectDetailsOrganizationCtrl);
m_pProjectDetailsOrganizationCtrl->SetLabel(strOrganization);
wxString strURL = pProjectInfo->m_strURL;
EllipseStringIfNeeded(strURL, m_pProjectDetailsURLCtrl);
m_pProjectDetailsURLCtrl->SetLabel(strURL);
wxLogTrace(wxT("Function Start/End"), wxT("CProjectInfoPage::OnProjectSelected - Function End"));
}