Skip to content

Commit 0301d44

Browse files
akernetGuillaume Chau
authored and
Guillaume Chau
committed
Fix for invisible elements (#28)
When using virtual scroller with variable height mode and two items, the first item can become invisible. Please see fiddle: http://jsfiddle.net/6r6eonhe/
1 parent 92593f3 commit 0301d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/VirtualScroller.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export default {
180180
const heights = this.heights
181181
let h
182182
let a = 0
183-
let b = l
183+
let b = l - 1
184184
let i = ~~(l / 2)
185185
let oldI
186186

0 commit comments

Comments
 (0)