From 7ed0328efdd437aec70b9ac4e7c9eee6073021d0 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/trunk@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 0209b50ded..54515038f9 100644 --- a/src/html/m_tables.cpp +++ b/src/html/m_tables.cpp @@ -576,6 +576,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: */ -- 2.45.2