Skip to content

Commit

Permalink
fix: πŸ› Initialize hyperlist with width/height of container
Browse files Browse the repository at this point in the history
  • Loading branch information
netchampfaris committed Dec 13, 2018
1 parent d14a16c commit bdbdc90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/body-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit bdbdc90

Please sign in to comment.