Skip to content

Commit

Permalink
fix: height NaN, fix #757
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Oct 17, 2022
1 parent 332d045 commit cd7063e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/vue-virtual-scroller/src/components/RecycleScroller.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export default {
updateVisibleItems (checkItem, checkPositionDiff = false) {
const itemSize = this.itemSize
const gridItems = this.gridItems
const gridItems = this.gridItems || 1
const itemSecondarySize = this.itemSecondarySize || itemSize
const minItemSize = this.$_computedMinItemSize
const typeField = this.typeField
Expand Down Expand Up @@ -654,9 +654,11 @@ export default {
addListeners () {
this.listenerTarget = this.getListenerTarget()
this.listenerTarget.addEventListener('scroll', this.handleScroll, supportsPassive ? {
passive: true,
} : false)
this.listenerTarget.addEventListener('scroll', this.handleScroll, supportsPassive
? {
passive: true,
}
: false)
this.listenerTarget.addEventListener('resize', this.handleResize)
},
Expand Down

0 comments on commit cd7063e

Please sign in to comment.