mirror of https://github.com/BOINC/boinc.git
parent
1287b95f73
commit
f208d2dba4
|
@ -737,8 +737,11 @@ void CBOINCBaseView::PostUpdateSelection(){
|
||||||
wxSize sz = m_pTaskPane->GetVirtualSize();
|
wxSize sz = m_pTaskPane->GetVirtualSize();
|
||||||
if (sz.GetHeight() > m_pTaskPane->GetSize().GetHeight()) {
|
if (sz.GetHeight() > m_pTaskPane->GetSize().GetHeight()) {
|
||||||
// Account for vertical scrollbar
|
// Account for vertical scrollbar
|
||||||
if (m_pTaskPane->GetSize().GetWidth() != (sz.GetWidth() + 17)) {
|
if (m_pTaskPane->GetSize().GetWidth() != (sz.GetWidth() + wxSystemSettings::GetMetric(wxSYS_VSCROLL_X, NULL))) {
|
||||||
m_pTaskPane->SetSize(sz.GetWidth() + 17, m_pTaskPane->GetSize().GetHeight());
|
m_pTaskPane->SetSize(
|
||||||
|
sz.GetWidth() + wxSystemSettings::GetMetric(wxSYS_VSCROLL_X, NULL),
|
||||||
|
m_pTaskPane->GetSize().GetHeight()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
m_pTaskPane->SetSize(sz.GetWidth(), m_pTaskPane->GetSize().GetHeight());
|
m_pTaskPane->SetSize(sz.GetWidth(), m_pTaskPane->GetSize().GetHeight());
|
||||||
|
|
Loading…
Reference in New Issue