Skip to content

Commit 97f0687

Browse files
fixed sticky cell when table has no row headers
1 parent 7d0a8b9 commit 97f0687

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/js/PivotView.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ PivotView.prototype.fixHeaders = function (tableElement) {
309309
// append new elements
310310
tableElement.appendChild(fhx);
311311
tableElement.appendChild(fhy);
312-
tableElement.appendChild(hHead);
312+
if ((this.controller.dataController.getData() || { dimensions: [0, 0] }).dimensions[1].length) {
313+
tableElement.appendChild(hHead);
314+
}
313315

314316
// call scroll handler because of render may be performed anytime
315317
this._scrollListener();

0 commit comments

Comments
 (0)