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);