mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-01 02:54:15 +01:00
New: Add bScrollAutoCss option (default true). This allows you to control the scrolling styles with CSS, where as normally DataTables will set (and override) the styles itself. This is useful for if you want to have a scroll bar showing at all times (normally auto).
This commit is contained in:
parent
78adcf35b3
commit
74654f84f4
8
media/js/jquery.dataTables.js
vendored
8
media/js/jquery.dataTables.js
vendored
@ -929,7 +929,8 @@
|
||||
"bCollapse": false,
|
||||
"bInfinite": false,
|
||||
"iLoadGap": 100,
|
||||
"iBarWidth": 0
|
||||
"iBarWidth": 0,
|
||||
"bAutoCss": true
|
||||
};
|
||||
|
||||
/*
|
||||
@ -3583,10 +3584,14 @@
|
||||
nScrollFoot.className = oClasses.sScrollFoot;
|
||||
nScrollFootInner.className = oClasses.sScrollFootInner;
|
||||
|
||||
if ( oSettings.oScroll.bAutoCss )
|
||||
{
|
||||
nScrollHead.style.overflow = "hidden";
|
||||
nScrollHead.style.position = "relative";
|
||||
nScrollFoot.style.overflow = "hidden";
|
||||
nScrollBody.style.overflow = "auto";
|
||||
}
|
||||
|
||||
nScrollHead.style.border = "0";
|
||||
nScrollFoot.style.border = "0";
|
||||
nScrollHeadInner.style.width = "150%"; /* will be overwritten */
|
||||
@ -6497,6 +6502,7 @@
|
||||
_fnMap( oSettings.oScroll, oInit, "bScrollCollapse", "bCollapse" );
|
||||
_fnMap( oSettings.oScroll, oInit, "bScrollInfinite", "bInfinite" );
|
||||
_fnMap( oSettings.oScroll, oInit, "iScrollLoadGap", "iLoadGap" );
|
||||
_fnMap( oSettings.oScroll, oInit, "bScrollAutoCss", "bAutoCss" );
|
||||
_fnMap( oSettings, oInit, "asStripClasses" );
|
||||
_fnMap( oSettings, oInit, "fnRowCallback" );
|
||||
_fnMap( oSettings, oInit, "fnHeaderCallback" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user