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


Origin commit data
------------------
Commit: c37b6d14f0
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-02-16 (Sat, 16 Feb 2019)

Origin message was:
------------------
- 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
This commit is contained in:
vanhofen
2019-02-16 23:40:25 +01:00
parent c2689afd24
commit aefa280866

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++)
{