]> git.saurik.com Git - wxWidgets.git/commitdiff
expand the table cells to fill the entire table width (patch 1722794)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Sep 2007 11:19:46 +0000 (11:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Sep 2007 11:19:46 +0000 (11:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/m_tables.cpp

index 0209b50dede9c86fee90b85113e9d3428212c815..54515038f9c2d716813a206eb1237fdf6188bc2d 100644 (file)
@@ -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: */