Remove unused `LeftPanel` dimension tracking (#7845)

pull/21833/head
J. Ryan Stinnett 2022-02-18 14:46:33 +00:00 提交者 GitHub
父节点 b756f03563
当前提交 acd051db43
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入3 次删除

查看文件

@ -64,7 +64,6 @@ interface IState {
@replaceableComponent("structures.LeftPanel")
export default class LeftPanel extends React.Component<IProps, IState> {
private ref = createRef<HTMLDivElement>();
private listContainerRef = createRef<HTMLDivElement>();
private roomSearchRef = createRef<RoomSearch>();
private roomListRef = createRef<RoomList>();
@ -90,7 +89,6 @@ export default class LeftPanel extends React.Component<IProps, IState> {
}
public componentDidMount() {
UIStore.instance.trackElementDimensions("LeftPanel", this.ref.current);
UIStore.instance.trackElementDimensions("ListContainer", this.listContainerRef.current);
UIStore.instance.on("ListContainer", this.refreshStickyHeaders);
// Using the passive option to not block the main thread
@ -420,7 +418,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
);
return (
<div className={containerClasses} ref={this.ref}>
<div className={containerClasses}>
<aside className="mx_LeftPanel_roomListContainer">
{ this.renderSearchDialExplore() }
{ this.renderBreadcrumbs() }