Skip to content

Commit

Permalink
fix(VirtualScroll): respect virtualScrollSliceSize #12049 (#12056)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan committed Jan 17, 2022
1 parent dcbb324 commit 5b86e11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/dev/src/pages/global/dialog-plugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export default {
this.dialogHandler = void 0
})
},
disabledButtons () {
this.dialogHandler = this.$q.dialog({
title: 'Disabled buttons',
Expand Down
4 changes: 2 additions & 2 deletions ui/src/mixins/virtual-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,9 @@ export default {
? 1
: Math.ceil(scrollViewSize / this.virtualScrollItemSizeComputed)
const baseSize = Math.max(
10,
1,
view,
Math.ceil(this.virtualScrollSliceSize / multiplier)
Math.ceil((this.virtualScrollSliceSize > 0 ? this.virtualScrollSliceSize : 10) / multiplier)
)

this.virtualScrollSliceSizeComputed = {
Expand Down

0 comments on commit 5b86e11

Please sign in to comment.