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 = (