From 3475f6ccaa5b1306dd12927537d752ebc1082756 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 9 Dec 2019 22:35:53 +0530 Subject: [PATCH] fix: Set cell height explicitly --- src/style.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/style.js b/src/style.js index 0dfae46..fa090b2 100644 --- a/src/style.js +++ b/src/style.js @@ -143,6 +143,7 @@ export default class Style { } setDimensions() { + this.setCellHeight(); this.setupMinWidth(); this.setupNaturalColumnWidth(); this.setupColumnWidth(); @@ -151,6 +152,12 @@ export default class Style { this.setBodyStyle(); } + setCellHeight() { + this.setStyle('.dt-cell', { + height: this.options.cellHeight + 'px' + }); + } + setupMinWidth() { $.each('.dt-cell--header', this.header).map(col => { const { colIndex } = $.data(col);