mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Fixed: The scrolling header container should really be width:100% rather than a fixed width. The pixel width was trying to do width:100% and succeeding, but needing to be calculated rather than done natively.
This commit is contained in:
parent
bd0115d838
commit
fdef8e02c3
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -3629,6 +3629,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
nScrollHead.style.border = "0";
|
nScrollHead.style.border = "0";
|
||||||
|
nScrollHead.style.width = "100%";
|
||||||
nScrollFoot.style.border = "0";
|
nScrollFoot.style.border = "0";
|
||||||
nScrollHeadInner.style.width = "150%"; /* will be overwritten */
|
nScrollHeadInner.style.width = "150%"; /* will be overwritten */
|
||||||
|
|
||||||
@ -3947,7 +3948,6 @@
|
|||||||
var iOuterWidth = $(o.nTable).outerWidth();
|
var iOuterWidth = $(o.nTable).outerWidth();
|
||||||
nScrollHeadTable.style.width = _fnStringToCss( iOuterWidth );
|
nScrollHeadTable.style.width = _fnStringToCss( iOuterWidth );
|
||||||
nScrollHeadInner.style.width = _fnStringToCss( iOuterWidth+o.oScroll.iBarWidth );
|
nScrollHeadInner.style.width = _fnStringToCss( iOuterWidth+o.oScroll.iBarWidth );
|
||||||
nScrollHeadInner.parentNode.style.width = _fnStringToCss( $(nScrollBody).width() );
|
|
||||||
|
|
||||||
if ( o.nTFoot !== null )
|
if ( o.nTFoot !== null )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user