Skip to content

Commit 56531a7

Browse files
default cell height
1 parent bc495f0 commit 56531a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/js/PivotView.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ PivotView.prototype.removeDataWait = function () {
270270
*/
271271
PivotView.prototype.recalculateSizes = function (container) {
272272

273-
var containerParent = container.parentNode;
273+
var containerParent = container.parentNode,
274+
DEFAULT_CELL_HEIGHT = 22;
274275

275276
try {
276277

@@ -356,7 +357,7 @@ PivotView.prototype.recalculateSizes = function (container) {
356357
if (pTableHead.childNodes[i].tagName !== "TR") continue;
357358
if (pTableHead.childNodes[i].firstChild) {
358359
pTableHead.childNodes[i].firstChild.style.height =
359-
(columnHeights[i] || 0) + "px";
360+
(columnHeights[i] || DEFAULT_CELL_HEIGHT) + "px";
360361
}
361362
}
362363

0 commit comments

Comments
 (0)