mirror of https://github.com/BOINC/boinc.git
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:
parent
dfbb543325
commit
98ec7e7d7b
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue