Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 3cf4d74

Browse files
JSitjaNCRjosephperrott
authored andcommitted
fix(virtual-repeat-container): support horizontal scrollbar in vertical orientation (#11462)
1 parent 649116b commit 3cf4d74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/virtualRepeat/virtual-repeater.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,11 @@ VirtualRepeatContainerController.prototype.handleScroll_ = function() {
393393
var offset = this.isHorizontal() ?
394394
(ltr?this.scroller.scrollLeft : this.maxSize - this.scroller.scrollLeft)
395395
: this.scroller.scrollTop;
396-
if (offset === this.scrollOffset || offset > this.scrollSize - this.size) return;
396+
if (this.scrollSize < this.size) return;
397+
if (offset > this.scrollSize - this.size) {
398+
offset = this.scrollSize - this.size;
399+
}
400+
if (offset === this.scrollOffset) return;
397401

398402
var itemSize = this.repeater.getItemSize();
399403
if (!itemSize) return;

0 commit comments

Comments
 (0)