fix: Set cell height explicitly

This commit is contained in:
Faris Ansari 2019-12-09 22:35:53 +05:30
parent 31264d1f4d
commit 3475f6ccaa

View File

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