From bdbdc90578dacbdb1e3daa262a16e21920e95238 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Thu, 13 Dec 2018 18:01:01 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Initialize=20hyperlist=20?= =?UTF-8?q?with=20width/height=20of=20container?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/body-renderer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/body-renderer.js b/src/body-renderer.js index 7e97ba2..84946b0 100644 --- a/src/body-renderer.js +++ b/src/body-renderer.js @@ -23,7 +23,11 @@ export default class BodyRenderer { return null; }).filter(index => index !== null); + const computedStyle = getComputedStyle(this.bodyScrollable); + let config = { + width: computedStyle.width, + height: computedStyle.height, itemHeight: this.options.cellHeight, total: rows.length, generate: (index) => {