From 973aa1118d777f7501cc9d3cea98fc2771b84ae5 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Mon, 1 Aug 2011 08:13:15 -1000 Subject: [PATCH] Correct fixed-column widths, make horizontal scrollbar selectable --- jquery.fixedheadertable.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/jquery.fixedheadertable.js b/jquery.fixedheadertable.js index 61b3fb9..2a0bf89 100644 --- a/jquery.fixedheadertable.js +++ b/jquery.fixedheadertable.js @@ -381,12 +381,16 @@ */ _fixWidthWithCss: function( $obj, tableProps ) { if ( settings.includePadding ) { - $obj.css({ - 'width': $obj.width() + tableProps.border + $obj.each(function(index) { + $(this).css({ + 'width': $(this).width() + tableProps.border + }); }); } else { - $obj.css({ - 'width': $obj.parent().width() + tableProps.border + $obj.each(function(index) { + $(this).css({ + 'width': $(this).parent().width() + tableProps.border + }); }); } }, @@ -454,6 +458,7 @@ // set width of fixed column wrapper $fixedColumn.css({ + 'height': 0, 'width': fixedColumnWidth });