tabulator-tables 5.3.3 → 5.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabulator-tables",
3
- "version": "5.3.3",
3
+ "version": "5.3.4",
4
4
  "description": "Interactive table generation JavaScript library",
5
5
  "style": "dist/css/tabulator.css",
6
6
  "main": "dist/js/tabulator.js",
@@ -287,7 +287,7 @@ export default class ColumnManager extends CoreFeature {
287
287
 
288
288
  if(!this.redrawBlock){
289
289
 
290
- this.element.style.height="";
290
+ this.headersElement.style.height="";
291
291
 
292
292
  this.columns.forEach((column) => {
293
293
  column.clearVerticalAlign();
@@ -301,7 +301,7 @@ export default class ColumnManager extends CoreFeature {
301
301
  }
302
302
  });
303
303
 
304
- this.element.style.height = minHeight + "px";
304
+ this.headersElement.style.height = minHeight + "px";
305
305
 
306
306
  this.columns.forEach((column) => {
307
307
  column.verticalAlign(this.table.options.columnHeaderVertAlign, minHeight);
@@ -788,7 +788,7 @@ export default class RowManager extends CoreFeature{
788
788
  getRows(type){
789
789
  var rows = [];
790
790
 
791
- if(!type){
791
+ if(!type || type === true){
792
792
  rows = this.chain("rows-retrieve", type, null, this.rows) || this.rows;
793
793
  }else{
794
794
  switch(type){
@@ -928,10 +928,10 @@ export default class RowManager extends CoreFeature{
928
928
  _clearPlaceholder(){
929
929
  if(this.placeholder && this.placeholder.parentNode){
930
930
  this.placeholder.parentNode.removeChild(this.placeholder);
931
-
932
- // clear empty table placeholder min
933
- this.tableElement.style.minWidth = "";
934
931
  }
932
+
933
+ // clear empty table placeholder min
934
+ this.tableElement.style.minWidth = "";
935
935
  }
936
936
 
937
937
  _positionPlaceholder(){
@@ -100,12 +100,13 @@ class FrozenRows extends Module{
100
100
  this.topElement.appendChild(row.getElement());
101
101
  row.initialize();
102
102
  row.normalizeHeight();
103
- this.table.rowManager.adjustTableSize();
104
-
103
+
105
104
  this.rows.push(row);
106
105
 
107
106
  this.refreshData(false, "display");
108
107
 
108
+ this.table.rowManager.adjustTableSize();
109
+
109
110
  this.styleRows();
110
111
 
111
112
  }else{
@@ -279,8 +279,7 @@ class GroupRows extends Module{
279
279
 
280
280
  // get grouped table data in the same format as getData()
281
281
  userGetGroupedData(){
282
- return this.table.options.groupBy ?
283
- this.getGroupedData() : this.getData();
282
+ return this.table.options.groupBy ? this.getGroupedData() : this.getData();
284
283
  }
285
284
 
286
285