vue-virtual-scroller
vue-virtual-scroller copied to clipboard
e.getBoundingClientRect is not a function
trafficstars
Describe the bug
// ../../../node_modules/vue-virtual-scroller/dist/vue-virtual-scroller.esm.js at line 659:27
const { $el: el, direction } = this;
const isVertical = direction === 'vertical';
let scrollState;
if (this.pageMode) {
const bounds = el.getBoundingClientRect();
const boundsSize = isVertical ? bounds.height : bounds.width;
let start = -(isVertical ? bounds.top : bounds.left);
let size = isVertical ? window.innerHeight : window.innerWidth;
if (start < 0) {
size += start;
Reproduction
System Info
-
Used Package Manager
npm
Validations
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- [X] The provided reproduction is a minimal reproducible example of the bug.