expand the table cells to fill the entire table width (patch 1722794)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -576,6 +576,10 @@ void wxHtmlTableCell::Layout(int w)
|
|||||||
m_ColsInfo[i].leftpos = wpos;
|
m_ColsInfo[i].leftpos = wpos;
|
||||||
wpos += m_ColsInfo[i].pixwidth + m_Spacing;
|
wpos += m_ColsInfo[i].pixwidth + m_Spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add the remaining space to the last column
|
||||||
|
if (m_NumCols > 0 && wpos < m_Width)
|
||||||
|
m_ColsInfo[m_NumCols-1].pixwidth += m_Width - wpos;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 3. sub-layout all cells: */
|
/* 3. sub-layout all cells: */
|
||||||
|
Reference in New Issue
Block a user