Skip to content

Commit

Permalink
fix(VirtualScroll): Don't scroll first row of a QTable when the posit…
Browse files Browse the repository at this point in the history
…ion is on top and there is header (#5697)
  • Loading branch information
pdanpdan authored and rstoenescu committed Nov 26, 2019
1 parent 4acba59 commit 884f5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/mixins/virtual-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export default {
let
toIndex = 0,
listOffset = scrollDetails.scrollStart - scrollDetails.offsetStart,
offset = 0
offset = listOffset

for (let j = 0; listOffset >= this.virtualScrollSizesAgg[j] && toIndex < listLastIndex; j++) {
listOffset -= this.virtualScrollSizesAgg[j]
Expand Down

0 comments on commit 884f5ed

Please sign in to comment.