From d1755c19e42aa3f2546f39d0cbd3748088748613 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 16 Sep 2007 11:19:46 +0000 Subject: [PATCH] expand the table cells to fill the entire table width (patch 1722794) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/m_tables.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/html/m_tables.cpp b/src/html/m_tables.cpp index 6da4e08ec2..99a17a8411 100644 --- a/src/html/m_tables.cpp +++ b/src/html/m_tables.cpp @@ -575,6 +575,10 @@ void wxHtmlTableCell::Layout(int w) m_ColsInfo[i].leftpos = wpos; 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: */