From ae8d6f5523a3e65548175e6d10410ddce0b67006 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 10 Jul 2020 18:48:54 +0200 Subject: [PATCH] make tsc happy --- src/components/views/rooms/RoomSublist2.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/views/rooms/RoomSublist2.tsx b/src/components/views/rooms/RoomSublist2.tsx index a059d146e8..73d53ccae7 100644 --- a/src/components/views/rooms/RoomSublist2.tsx +++ b/src/components/views/rooms/RoomSublist2.tsx @@ -88,8 +88,8 @@ interface IProps { // TODO: Use re-resizer's NumberSize when it is exposed as the type interface ResizeDelta { - width: number, - height: number, + width: number; + height: number; } type PartialDOMRect = Pick; @@ -98,6 +98,7 @@ interface IState { notificationState: ListNotificationState; contextMenuPosition: PartialDOMRect; isResizing: boolean; + height: number; } export default class RoomSublist2 extends React.Component { @@ -105,6 +106,7 @@ export default class RoomSublist2 extends React.Component { private sublistRef = createRef(); private dispatcherRef: string; private layout: ListLayout; + private heightAtStart: number; constructor(props: IProps) { super(props); @@ -684,7 +686,7 @@ export default class RoomSublist2 extends React.Component { content = (