1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00

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).

This commit is contained in:
Allan Jardine 2010-10-08 08:49:03 +01:00
parent af94c4b217
commit 1c407778bb

View File

@ -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 )
{