jquery.dgtable 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jquery.dgtable 0.6.3
2
+ * jquery.dgtable 0.6.4
3
3
  * git://github.com/danielgindi/jquery.dgtable.git
4
4
  */
5
5
  'use strict';
@@ -3578,7 +3578,7 @@ DGTable.prototype._setupHovers = function () {
3578
3578
  };
3579
3579
  };
3580
3580
 
3581
- DGTable.prototype._setupVirtualTable = function () {
3581
+ DGTable.prototype._setupVirtualTable = function () {var _p$filteredRows;
3582
3582
  const that = this,p = that.p,o = that.o;
3583
3583
 
3584
3584
  const tableClassName = o.tableClassName,
@@ -3660,7 +3660,7 @@ DGTable.prototype._setupVirtualTable = function () {
3660
3660
  }
3661
3661
  });
3662
3662
 
3663
- p.virtualListHelper.setCount(p.rows.length);
3663
+ p.virtualListHelper.setCount(((_p$filteredRows = p.filteredRows) !== null && _p$filteredRows !== void 0 ? _p$filteredRows : p.rows).length);
3664
3664
 
3665
3665
  p.notifyRendererOfColumnsConfig();
3666
3666
  };
@@ -3949,7 +3949,7 @@ DGTable.prototype.render = function () {
3949
3949
  return this;
3950
3950
  }
3951
3951
 
3952
- if (p.tableSkeletonNeedsRendering === true) {
3952
+ if (p.tableSkeletonNeedsRendering === true) {var _p$filteredRows2;
3953
3953
  p.tableSkeletonNeedsRendering = false;
3954
3954
 
3955
3955
  if (o.width === DGTable.Width.AUTO) {
@@ -3965,7 +3965,7 @@ DGTable.prototype.render = function () {
3965
3965
  tableWidthChanged(true, false) // Take this chance to calculate required column widths
3966
3966
  ._renderSkeletonHeaderCells();
3967
3967
 
3968
- p.virtualListHelper.invalidate();
3968
+ p.virtualListHelper.setCount(((_p$filteredRows2 = p.filteredRows) !== null && _p$filteredRows2 !== void 0 ? _p$filteredRows2 : p.rows).length);
3969
3969
 
3970
3970
  this._updateLastCellWidthFromScrollbar(true);
3971
3971