diff --git a/src/style.js b/src/style.js index 5b5d403..b24daf7 100644 --- a/src/style.js +++ b/src/style.js @@ -217,7 +217,7 @@ export default class Style { setDefaultCellHeight() { if (this.__cellHeightSet) return; const height = this.options.cellHeight || - $.style($('.data-table-cell', this.instance.datatableWrapper), 'height'); + $.style($('.data-table-cell', this.instance.bodyScrollable), 'height'); if (height) { this.setCellHeight(height); this.__cellHeightSet = true;