mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Fixed #4803 - VirtualScroller: getRenderedRange viewport calculation is broken
This commit is contained in:
parent
c4a7af7b05
commit
86a8e3d85c
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ export default {
|
||||||
if (this.element) {
|
if (this.element) {
|
||||||
const both = this.isBoth();
|
const both = this.isBoth();
|
||||||
const horizontal = this.isHorizontal();
|
const horizontal = this.isHorizontal();
|
||||||
const { scrollTop, scrollLeft } = this.element.scrollTop;
|
const { scrollTop, scrollLeft } = this.element;
|
||||||
|
|
||||||
if (both) {
|
if (both) {
|
||||||
firstInViewport = { rows: calculateFirstInViewport(scrollTop, this.itemSize[0]), cols: calculateFirstInViewport(scrollLeft, this.itemSize[1]) };
|
firstInViewport = { rows: calculateFirstInViewport(scrollTop, this.itemSize[0]), cols: calculateFirstInViewport(scrollLeft, this.itemSize[1]) };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue