From e97620b3dda80297382acc89e196d35bb9e34825 Mon Sep 17 00:00:00 2001 From: Freek Dijkstra Date: Mon, 27 Feb 2012 10:11:38 +0100 Subject: [PATCH] Adjust width of fixed-column footers to account for footers with a colspan --- jquery.fixedheadertable.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jquery.fixedheadertable.js b/jquery.fixedheadertable.js index d9ec1b6..9cccd20 100644 --- a/jquery.fixedheadertable.js +++ b/jquery.fixedheadertable.js @@ -485,8 +485,11 @@ $tfoot.appendTo($fixedColumn) .find('tr') .append($firstTdFootChild.clone()); + // Set (view width) of $tfoot div to width of table (this accounts for footers with a colspan) + footwidth = $tfoot.find('table').innerWidth(); $tfoot.css({ - 'top': settings.scrollbarOffset + 'top': settings.scrollbarOffset, + 'width': footwidth, }); } },