|
|
@ -41,7 +41,7 @@
|
|
|
|
// Browser
|
|
|
|
// Browser
|
|
|
|
factory( jQuery, window, document );
|
|
|
|
factory( jQuery, window, document );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}(function( $, window, document, undefined ) {
|
|
|
|
}(function( $, window, document ) {
|
|
|
|
'use strict';
|
|
|
|
'use strict';
|
|
|
|
var DataTable = $.fn.dataTable;
|
|
|
|
var DataTable = $.fn.dataTable;
|
|
|
|
|
|
|
|
|
|
|
@ -112,13 +112,13 @@ ScrollResize.prototype = {
|
|
|
|
var t = dt.table();
|
|
|
|
var t = dt.table();
|
|
|
|
var offsetTop = $(settings.table).offset().top;
|
|
|
|
var offsetTop = $(settings.table).offset().top;
|
|
|
|
var availableHeight = settings.host.height();
|
|
|
|
var availableHeight = settings.host.height();
|
|
|
|
var scrollBody = $('div.dataTables_scrollBody', t.container());
|
|
|
|
var scrollBody = $('div.dt-scroll-body', t.container());
|
|
|
|
// Subtract the height of the header, footer and the elements
|
|
|
|
// Subtract the height of the header, footer and the elements
|
|
|
|
// surrounding the table
|
|
|
|
// surrounding the table
|
|
|
|
availableHeight -= offsetTop;
|
|
|
|
availableHeight -= offsetTop;
|
|
|
|
availableHeight -=
|
|
|
|
availableHeight -=
|
|
|
|
settings.container.height() - (offsetTop + scrollBody.height());
|
|
|
|
settings.container.height() - (offsetTop + scrollBody.height());
|
|
|
|
$('div.dataTables_scrollBody', t.container()).css({
|
|
|
|
$('div.dt-scroll-body', t.container()).css({
|
|
|
|
maxHeight: availableHeight,
|
|
|
|
maxHeight: availableHeight,
|
|
|
|
height: availableHeight,
|
|
|
|
height: availableHeight,
|
|
|
|
});
|
|
|
|
});
|
|
|
|