diff --git a/features/scrollResize/dataTables.scrollResize.js b/features/scrollResize/dataTables.scrollResize.js index c00ef4e2..2859fe85 100644 --- a/features/scrollResize/dataTables.scrollResize.js +++ b/features/scrollResize/dataTables.scrollResize.js @@ -118,6 +118,9 @@ ScrollResize.prototype = { availableHeight -= offsetTop; availableHeight -= settings.container.height() - (offsetTop + scrollBody.height()); + if (settings.table.height() < availableHeight){ + availableHeight = settings.table.height(); + } $('div.dt-scroll-body', t.container()).css({ maxHeight: availableHeight, height: availableHeight,