From 309709aded83ba3eb9c26fb2fd6debac1f44292a Mon Sep 17 00:00:00 2001 From: SandyDatatables Date: Fri, 7 Jan 2022 16:07:36 +0000 Subject: [PATCH] fix: Fix issue with scrollresize calling legacy api method on FixedColumns Jira Issue DD-2417 --- features/scrollResize/dataTables.scrollResize.js | 4 ---- features/scrollResize/dataTables.scrollResize.min.js | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/features/scrollResize/dataTables.scrollResize.js b/features/scrollResize/dataTables.scrollResize.js index 1b5b41b..2017dea 100644 --- a/features/scrollResize/dataTables.scrollResize.js +++ b/features/scrollResize/dataTables.scrollResize.js @@ -107,10 +107,6 @@ ScrollResize.prototype = { maxHeight: availableHeight, height: availableHeight } ); - - if ( dt.fixedColumns ) { - dt.fixedColumns().relayout(); - } }, _attach: function () { diff --git a/features/scrollResize/dataTables.scrollResize.min.js b/features/scrollResize/dataTables.scrollResize.min.js index b8fb422..db35d38 100644 --- a/features/scrollResize/dataTables.scrollResize.min.js +++ b/features/scrollResize/dataTables.scrollResize.min.js @@ -21,7 +21,7 @@ ScrollResize for DataTables v1.0.0 2015 SpryMedia Ltd - datatables.net/license */ -(function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return a(e,window,document)}):"object"===typeof exports?module.exports=function(e,g){e||(e=window);g&&g.fn.dataTable||(g=require("datatables.net")(e,g).$);return a(g,e,e.document)}:a(jQuery,window,document)})(function(a,e,g,n){var l=function(c){var d=this,b=c.table();this.s={dt:c,host:a(b.container()).parent(),header:a(b.header()),footer:a(b.footer()),body:a(b.body()),container:a(b.container()),table:a(b.node())}; -b=this.s.host;"static"===b.css("position")&&b.css("position","relative");c.on("draw",function(){d._size()});this._attach();this._size()};l.prototype={_size:function(){var c=this.s,d=c.dt,b=d.table(),k=a(c.table).offset().top,f=c.host.height(),h=a("div.dataTables_scrollBody",b.container());f=f-k-(c.container.height()-(k+h.height()));a("div.dataTables_scrollBody",b.container()).css({maxHeight:f,height:f});d.fixedColumns&&d.fixedColumns().relayout()},_attach:function(){var c=this,d=a("