From 1c407778bbbcd3574cef563f0f9ed7acc2a2733a Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Fri, 8 Oct 2010 08:49:03 +0100 Subject: [PATCH] Fixed: Previous fix for setting the inner header width was incorrect, and would break x-scrolling. It should be taking the width of the containing element of the main table (nScrollBody), rather than the width of the table (which when x-scrolling could be much wider than the container). --- media/js/jquery.dataTables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 5d57f7ba..e7d6a027 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -3802,7 +3802,7 @@ var iOuterWidth = $(o.nTable).outerWidth(); nScrollHeadTable.style.width = _fnStringToCss( iOuterWidth ); nScrollHeadInner.style.width = _fnStringToCss( iOuterWidth+o.oScroll.iBarWidth ); - nScrollHeadInner.parentNode.style.width = _fnStringToCss( iOuterWidth ); + nScrollHeadInner.parentNode.style.width = _fnStringToCss( $(nScrollBody).width() ); if ( o.nTFoot !== null ) {