diff --git a/ts/components/VirtualTable.svelte b/ts/components/VirtualTable.svelte index 70d7bce45..8e91b0472 100644 --- a/ts/components/VirtualTable.svelte +++ b/ts/components/VirtualTable.svelte @@ -21,7 +21,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html itemHeight, ) * itemHeight : 0; - $: innerHeight = Math.max(containerHeight, itemsCount * itemHeight); $: sliceLength = Math.ceil(containerHeight / itemHeight); $: startIndex = Math.floor(scrollTop / itemHeight); $: endIndex = Math.min(startIndex + sliceLength, itemsCount); @@ -38,18 +37,29 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html bind:this={container} on:scroll={() => (scrollTop = container.scrollTop)} > -