Force LTR layout on statistics and disk tabs.

This commit is contained in:
Tal Regev 2021-02-20 22:31:18 +02:00
parent 51047f275a
commit 62194a1909
2 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,8 @@ CViewResources::CViewResources(wxNotebook* pNotebook) :
CtrlBOINCPart.SetValue(1);
CtrlBOINCPart.SetColour(wxColour(255,255,255));
m_pieCtrlBOINC->m_Series.Add(CtrlBOINCPart);
m_pieCtrlTotal->SetLayoutDirection(wxLayout_LeftToRight);
CtrlBOINCPart->SetLayoutDirection(wxLayout_LeftToRight);
m_pieCtrlBOINC->Refresh();
//init the flexGrid

View File

@ -1945,6 +1945,8 @@ CViewStatistics::CViewStatistics(wxNotebook* pNotebook) :
m_PaintStatistics = new CPaintStatistics(this, ID_LIST_STATISTICSVIEW, wxDefaultPosition, wxSize(-1, -1), 0);
wxASSERT(m_PaintStatistics);
m_pTaskPane->SetLayoutDirection(wxLayout_LeftToRight);
m_PaintStatistics->SetLayoutDirection(wxLayout_LeftToRight);
itemFlexGridSizer->Add(m_pTaskPane, 1, wxGROW|wxALL, 1);
itemFlexGridSizer->Add(m_PaintStatistics, 1, wxGROW|wxALL, 1);