fix: 🐛 Pick cellHeight from options
HyperList should take cellHeight from options
This commit is contained in:
parent
cbe9f4858b
commit
01d74ef6ad
@ -14,7 +14,7 @@ export default class BodyRenderer {
|
||||
|
||||
renderRows(rows) {
|
||||
let config = {
|
||||
itemHeight: 40,
|
||||
itemHeight: this.options.cellHeight,
|
||||
total: rows.length,
|
||||
generate: (index) => {
|
||||
const el = document.createElement('div');
|
||||
@ -30,7 +30,7 @@ export default class BodyRenderer {
|
||||
const rows = this.datamanager.getRowsForView();
|
||||
|
||||
let config = {
|
||||
itemHeight: 40,
|
||||
itemHeight: this.options.cellHeight,
|
||||
total: rows.length,
|
||||
generate: (index) => {
|
||||
const el = document.createElement('div');
|
||||
|
||||
@ -52,7 +52,7 @@ export default {
|
||||
logs: false,
|
||||
layout: 'fixed', // fixed, fluid, ratio
|
||||
noDataMessage: 'No Data',
|
||||
cellHeight: null,
|
||||
cellHeight: 40,
|
||||
inlineFilters: false,
|
||||
treeView: false,
|
||||
checkedRowStatus: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user