From f444160c6a29b4766551a20c7364df001a78789a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 23 Nov 2021 14:33:27 +0100 Subject: [PATCH] feels ok without overflow margin for now --- src/platform/web/ui/general/LazyListView.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/platform/web/ui/general/LazyListView.ts b/src/platform/web/ui/general/LazyListView.ts index 81b57264..1696f044 100644 --- a/src/platform/web/ui/general/LazyListView.ts +++ b/src/platform/web/ui/general/LazyListView.ts @@ -22,7 +22,6 @@ import {IView} from "./types"; export interface IOptions extends IParentOptions { itemHeight: number; - overflowMargin?: number; overflowItems?: number; } @@ -34,13 +33,12 @@ export class LazyListView extends ListView { private scrollContainer?: HTMLElement; constructor( - {itemHeight, overflowMargin = 5, overflowItems = 20, ...options}: IOptions, + {itemHeight, overflowItems = 20, ...options}: IOptions, childCreator: (value: T) => V ) { super(options, childCreator); this.itemHeight = itemHeight; this.overflowItems = overflowItems; - // TODO: this.overflowMargin = overflowMargin; } handleEvent(e: Event) {