| 1 |
// DATA_TEMPLATE: dom_data |
| 2 |
oTest.fnStart( "5508 - Table container width doesn't change when filtering applied to scrolling table" ); |
| 3 |
|
| 4 |
$(document).ready( function () { |
| 5 |
$('#example').dataTable( { |
| 6 |
"sScrollY": "300px", |
| 7 |
"bPaginate": false |
| 8 |
} ); |
| 9 |
|
| 10 |
oTest.fnTest( |
| 11 |
"Width of container 800px on init with scroll", |
| 12 |
null, |
| 13 |
function () { return $('div.dataTables_scrollBody').width() == 800; } |
| 14 |
); |
| 15 |
|
| 16 |
oTest.fnTest( |
| 17 |
"Unaltered when filter applied", |
| 18 |
function () { $('#example').dataTable().fnFilter('123'); }, |
| 19 |
function () { return $('div.dataTables_scrollBody').width() == 800; } |
| 20 |
); |
| 21 |
|
| 22 |
oTest.fnComplete(); |
| 23 |
} ); |