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:
Vadim Zeitlin
2007-09-16 11:19:46 +00:00
parent dbfa728a07
commit 7ed0328efd

View File

@@ -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: */