mirror of https://github.com/vector-im/riot-web
make tsc happy
parent
15ea3a5287
commit
ae8d6f5523
|
@ -88,8 +88,8 @@ interface IProps {
|
||||||
|
|
||||||
// TODO: Use re-resizer's NumberSize when it is exposed as the type
|
// TODO: Use re-resizer's NumberSize when it is exposed as the type
|
||||||
interface ResizeDelta {
|
interface ResizeDelta {
|
||||||
width: number,
|
width: number;
|
||||||
height: number,
|
height: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
type PartialDOMRect = Pick<DOMRect, "left" | "top" | "height">;
|
type PartialDOMRect = Pick<DOMRect, "left" | "top" | "height">;
|
||||||
|
@ -98,6 +98,7 @@ interface IState {
|
||||||
notificationState: ListNotificationState;
|
notificationState: ListNotificationState;
|
||||||
contextMenuPosition: PartialDOMRect;
|
contextMenuPosition: PartialDOMRect;
|
||||||
isResizing: boolean;
|
isResizing: boolean;
|
||||||
|
height: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class RoomSublist2 extends React.Component<IProps, IState> {
|
export default class RoomSublist2 extends React.Component<IProps, IState> {
|
||||||
|
@ -105,6 +106,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
|
||||||
private sublistRef = createRef<HTMLDivElement>();
|
private sublistRef = createRef<HTMLDivElement>();
|
||||||
private dispatcherRef: string;
|
private dispatcherRef: string;
|
||||||
private layout: ListLayout;
|
private layout: ListLayout;
|
||||||
|
private heightAtStart: number;
|
||||||
|
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
@ -684,7 +686,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
|
||||||
content = (
|
content = (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Resizable
|
<Resizable
|
||||||
size={{height: this.state.height}}
|
size={{height: this.state.height} as any}
|
||||||
minHeight={minTilesPx}
|
minHeight={minTilesPx}
|
||||||
maxHeight={maxTilesPx}
|
maxHeight={maxTilesPx}
|
||||||
onResizeStart={this.onResizeStart}
|
onResizeStart={this.onResizeStart}
|
||||||
|
|
Loading…
Reference in New Issue