Skip to content

Commit

Permalink
fix: Set cell height explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
netchampfaris committed Dec 9, 2019
1 parent 31264d1 commit 3475f6c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export default class Style {
}

setDimensions() {
this.setCellHeight();
this.setupMinWidth();
this.setupNaturalColumnWidth();
this.setupColumnWidth();
Expand All @@ -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);
Expand Down

0 comments on commit 3475f6c

Please sign in to comment.