@universis/ngx-tables 0.7.4 → 0.7.5

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.
@@ -1308,6 +1308,7 @@
1308
1308
  }, 0);
1309
1309
  }
1310
1310
  });
1311
+ var drawIndex_1 = 1;
1311
1312
  tableElement_1.on('order.dt', function (event) {
1312
1313
  if (_this.dataTable) {
1313
1314
  var order = _this.dataTable.order();
@@ -1320,8 +1321,11 @@
1320
1321
  if (_this.dataTable) {
1321
1322
  var info = _this.dataTable.page.info();
1322
1323
  _this.page.emit(info);
1324
+ if (drawIndex_1 > 1)
1325
+ return;
1323
1326
  try {
1324
- _this.dataTable.columns.adjust();
1327
+ drawIndex_1++;
1328
+ setTimeout(function () { _this.dataTable.columns.adjust(); }, 1);
1325
1329
  }
1326
1330
  catch (err) {
1327
1331
  console.error('ERROR', 'An error occurred while adjusting table columns');