Fixed #4803 - VirtualScroller: getRenderedRange viewport calculation is broken
parent
c4a7af7b05
commit
86a8e3d85c
|
@ -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…
Reference in New Issue