forked from mystiq/hydrogen-web
feels ok without overflow margin for now
This commit is contained in:
parent
e4be1702c4
commit
f444160c6a
1 changed files with 1 additions and 3 deletions
|
@ -22,7 +22,6 @@ import {IView} from "./types";
|
||||||
|
|
||||||
export interface IOptions<T, V> extends IParentOptions<T, V> {
|
export interface IOptions<T, V> extends IParentOptions<T, V> {
|
||||||
itemHeight: number;
|
itemHeight: number;
|
||||||
overflowMargin?: number;
|
|
||||||
overflowItems?: number;
|
overflowItems?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,13 +33,12 @@ export class LazyListView<T, V extends IView> extends ListView<T, V> {
|
||||||
private scrollContainer?: HTMLElement;
|
private scrollContainer?: HTMLElement;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
{itemHeight, overflowMargin = 5, overflowItems = 20, ...options}: IOptions<T, V>,
|
{itemHeight, overflowItems = 20, ...options}: IOptions<T, V>,
|
||||||
childCreator: (value: T) => V
|
childCreator: (value: T) => V
|
||||||
) {
|
) {
|
||||||
super(options, childCreator);
|
super(options, childCreator);
|
||||||
this.itemHeight = itemHeight;
|
this.itemHeight = itemHeight;
|
||||||
this.overflowItems = overflowItems;
|
this.overflowItems = overflowItems;
|
||||||
// TODO: this.overflowMargin = overflowMargin;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleEvent(e: Event) {
|
handleEvent(e: Event) {
|
||||||
|
|
Loading…
Reference in a new issue