- listframe: fix alignment of headerlist to content below

* since scrollbar isn't paint over the full height we have to reduce
  the netto width by a possible scrollbar width

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-02-16 23:40:25 +01:00
committed by Thilo Graf
parent 47c8f071c8
commit f0b9588b82

View File

@@ -480,6 +480,7 @@ void CListFrame::refreshHeaderList(void)
int x = m_cFrameHeaderListRel.iX + OFFSET_INNER_MID;
int y = m_cFrameHeaderListRel.iY + m_nFontHeaderListHeight + OFFSET_INNER_MIN;
int net_width = m_cFrameHeaderListRel.iWidth - OFFSET_INNER_SMALL * (m_pLines->rows - 1);
net_width -= m_cFrameScrollRel.iWidth;
bool loop = true;
for(int row = 0; row < m_pLines->rows && loop == true; row++)
{