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:
parent
af94c4b217
commit
1c407778bb
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user