You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
make tsc happy
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user