fix: Set cell height explicitly
This commit is contained in:
parent
31264d1f4d
commit
3475f6ccaa
@ -143,6 +143,7 @@ export default class Style {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setDimensions() {
|
setDimensions() {
|
||||||
|
this.setCellHeight();
|
||||||
this.setupMinWidth();
|
this.setupMinWidth();
|
||||||
this.setupNaturalColumnWidth();
|
this.setupNaturalColumnWidth();
|
||||||
this.setupColumnWidth();
|
this.setupColumnWidth();
|
||||||
@ -151,6 +152,12 @@ export default class Style {
|
|||||||
this.setBodyStyle();
|
this.setBodyStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setCellHeight() {
|
||||||
|
this.setStyle('.dt-cell', {
|
||||||
|
height: this.options.cellHeight + 'px'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
setupMinWidth() {
|
setupMinWidth() {
|
||||||
$.each('.dt-cell--header', this.header).map(col => {
|
$.each('.dt-cell--header', this.header).map(col => {
|
||||||
const { colIndex } = $.data(col);
|
const { colIndex } = $.data(col);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user