mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-02 14:24:11 +01:00
2c9ce2aa59
Fix: As with the fix in 1.8.1 for the x-scrolling appearing when disabled the footer needs the same consideration as the header, otherwise it can be cut off visually.
23 lines
615 B
JavaScript
Executable File
23 lines
615 B
JavaScript
Executable File
// DATA_TEMPLATE: dom_data
|
|
oTest.fnStart( "5508 - Table container width doesn't change when filtering applied to scrolling table" );
|
|
|
|
$(document).ready( function () {
|
|
$('#example').dataTable( {
|
|
"sScrollY": "300px",
|
|
"bPaginate": false
|
|
} );
|
|
|
|
oTest.fnTest(
|
|
"Width of container 800px on init with scroll",
|
|
null,
|
|
function () { return $('div.dataTables_scrollBody').width() == 800; }
|
|
);
|
|
|
|
oTest.fnTest(
|
|
"Unaltered when filter applied",
|
|
function () { $('#example').dataTable().fnFilter('123'); },
|
|
function () { return $('div.dataTables_scrollBody').width() == 800; }
|
|
);
|
|
|
|
oTest.fnComplete();
|
|
} ); |