fix: 🐛 Initialize hyperlist with width/height of container
This commit is contained in:
parent
d14a16c9a0
commit
bdbdc90578
@ -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) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user