fix: 🐛 Initialize hyperlist with width/height of container

This commit is contained in:
Faris Ansari 2018-12-13 18:01:01 +05:30
parent d14a16c9a0
commit bdbdc90578

View File

@ -23,7 +23,11 @@ export default class BodyRenderer {
return null; return null;
}).filter(index => index !== null); }).filter(index => index !== null);
const computedStyle = getComputedStyle(this.bodyScrollable);
let config = { let config = {
width: computedStyle.width,
height: computedStyle.height,
itemHeight: this.options.cellHeight, itemHeight: this.options.cellHeight,
total: rows.length, total: rows.length,
generate: (index) => { generate: (index) => {