Skip to content

Commit

Permalink
ensure placeholder element is redrawn correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
olifolkerd committed Jul 22, 2017
1 parent 915e3d8 commit 6fd86cd
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 23 deletions.
28 changes: 18 additions & 10 deletions dist/js/tabulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2751,14 +2751,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
self.renderTable();
}

if (!this.displayRowsCount) {

if (table.options.placeholder) {

self.getElement().append(table.options.placeholder);
}
}

if (table.extExists("columnCalcs")) {

table.extensions.columnCalcs.recalc(this.displayRows);
Expand Down Expand Up @@ -2828,9 +2820,17 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
}
}

if (this.table.extExists("frozenColumns")) {
if (self.table.extExists("frozenColumns")) {

this.table.extensions.frozenColumns.layout();
self.table.extensions.frozenColumns.layout();
}

if (!self.displayRowsCount) {

if (self.table.options.placeholder) {

self.getElement().append(self.table.options.placeholder);
}
}

self.table.options.renderComplete();
Expand Down Expand Up @@ -3371,6 +3371,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope

this._virtualRenderFill(pos);
}

if (!this.displayRowsCount) {

if (this.table.options.placeholder) {

this.getElement().append(this.table.options.placeholder);
}
}
} else {

this.renderTable();
Expand Down
Loading

0 comments on commit 6fd86cd

Please sign in to comment.