Akryum / Akryum/vue-virtual-scroller
e.getBoundingClientRect is not a function
- Vorherrschende Sprache
- TypeScript
- Sterne
- 10.8k
- Forks
- 973
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### Describe the bug
```js
// ../../../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
```shell
-
```
### Used Package Manager
npm
### Validations
- [X] Read the [docs](https://github.com/Akryum/vue-virtual-scroller/blob/master/packages/vue-virtual-scroller/README.md).
- [X] Check that there isn't [already an issue](https://github.com/Akryum/vue-virtual-scroller/issues) 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](https://github.com/Akryum/vue-virtual-scroller/discussions).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.