Skip to content
Browse files

Fix: Compatiblity issue with jQuery 1.x when scrollCollapse is used a…

…nd the window forces the browser to scroll horizontally.

- In that situation the height of the DataTables container would be the height of the scrollbar. jQuery 3.x doesn't use the
  scrollbar height, returning 0, while 1.x returned 15 (or whatever for your platform).
- Solution is to remove jQuery there and just use clientHeight
- DD-667
  • Loading branch information...
Allan Jardine
Allan Jardine committed Jan 4, 2019
1 parent 3520ef6 commit 30d4ac478c86e0c642cc93a1a5b3493ea19542b2
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/dataTables.scroller.js
@@ -286,7 +286,7 @@ $.extend( Scroller.prototype, {

if ( heights.row ) {
heights.viewport = $.contains(document, this.dom.scroller) ?
$(this.dom.scroller).height() :
this.dom.scroller.clientHeight :

// If collapsed (no height) use the max-height parameter

0 comments on commit 30d4ac4

Please sign in to comment.
You can’t perform that action at this time.