From ee072343f5d9f8fa7d9d2d4d9ec2ed7eda9a0c0d Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Sat, 3 Jul 2021 21:19:41 +0530 Subject: [PATCH] Switch to lazy list Signed-off-by: RMidhunSuresh --- src/platform/web/ui/session/rightpanel/MemberListView.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/platform/web/ui/session/rightpanel/MemberListView.js b/src/platform/web/ui/session/rightpanel/MemberListView.js index 5b941a23..318516cd 100644 --- a/src/platform/web/ui/session/rightpanel/MemberListView.js +++ b/src/platform/web/ui/session/rightpanel/MemberListView.js @@ -1,9 +1,14 @@ import {TemplateView} from "../../general/TemplateView.js"; -import {ListView} from "../../general/ListView.js"; +import {LazyListView} from "../../general/LazyListView.js"; import {MemberTileView} from "./MemberTileView.js"; export class MemberListView extends TemplateView { render(t, vm) { - return t.view(new ListView({list: vm.memberTileViewModels, className:"MemberListView"}, tileViewModel => new MemberTileView(tileViewModel))); + return t.view(new LazyListView({ + list: vm.memberTileViewModels, + className: "MemberListView", + height: 691, + itemHeight: 32 + }, tileViewModel => new MemberTileView(tileViewModel))); } }