mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
feels ok without overflow margin for now
This commit is contained in:
parent
e4be1702c4
commit
f444160c6a
@ -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 New Issue
Block a user