Skip to content

Commit

Permalink
Merge refs/heads/main into dependabot/npm_and_yarn/stylelint-15.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
acv-bulldozer[bot] authored Sep 8, 2023
2 parents b819369 + b0c0d12 commit da51d17
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 9 additions & 8 deletions src/components/AcvInfiniteScroller.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
<template v-else>
<slot v-bind="{ item, index }" />
</template>
<slot
name="appendRow"
v-bind="{ item, index }"
/>
</div>
</div>
</div>
Expand Down Expand Up @@ -191,8 +195,7 @@ export default {
return `infinite-scroller-list-${this.inputId}`;
},
wrapHeight() {
const totalHeight = this.itemCount * this.rowHeight;
return totalHeight;
return this.itemCount * this.rowHeight;
},
infiniteScrollerWrapStyle() {
return {
Expand Down Expand Up @@ -253,8 +256,7 @@ export default {
* The translateY amount to be applied to the list
*/
offsetY() {
const offset = this.startIndex * this.rowHeight;
return offset;
return this.startIndex * this.rowHeight;
},
/*
* Apply the offsetY to the list containing the data sources
Expand Down Expand Up @@ -381,10 +383,9 @@ export default {
.sort((a, b) => a - b);
const resolution = resolutions.filter((r) => (r <= this.windowWidth)).pop();
if (resolution) {
const itemsPerRow = this.viewportChunksDefinitions[`${resolution}`]
|| this.viewportChunksDefinitions[`${resolution}px`]
|| 1;
return itemsPerRow;
return this.viewportChunksDefinitions[`${resolution}`]
|| this.viewportChunksDefinitions[`${resolution}px`]
|| 1;
}
return 1;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ exports[`AcvInfiniteScroller.vue Should render infinite scroll should render inf
>
<div
class="acv-infinite-scroller-item"
/>
>
</div>
</div>
</div>
Expand Down

0 comments on commit da51d17

Please sign in to comment.