Remove unused LeftPanel
dimension tracking (#7845)
This commit is contained in:
parent
b756f03563
commit
acd051db43
1 changed files with 1 additions and 3 deletions
|
@ -64,7 +64,6 @@ interface IState {
|
||||||
|
|
||||||
@replaceableComponent("structures.LeftPanel")
|
@replaceableComponent("structures.LeftPanel")
|
||||||
export default class LeftPanel extends React.Component<IProps, IState> {
|
export default class LeftPanel extends React.Component<IProps, IState> {
|
||||||
private ref = createRef<HTMLDivElement>();
|
|
||||||
private listContainerRef = createRef<HTMLDivElement>();
|
private listContainerRef = createRef<HTMLDivElement>();
|
||||||
private roomSearchRef = createRef<RoomSearch>();
|
private roomSearchRef = createRef<RoomSearch>();
|
||||||
private roomListRef = createRef<RoomList>();
|
private roomListRef = createRef<RoomList>();
|
||||||
|
@ -90,7 +89,6 @@ export default class LeftPanel extends React.Component<IProps, IState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public componentDidMount() {
|
public componentDidMount() {
|
||||||
UIStore.instance.trackElementDimensions("LeftPanel", this.ref.current);
|
|
||||||
UIStore.instance.trackElementDimensions("ListContainer", this.listContainerRef.current);
|
UIStore.instance.trackElementDimensions("ListContainer", this.listContainerRef.current);
|
||||||
UIStore.instance.on("ListContainer", this.refreshStickyHeaders);
|
UIStore.instance.on("ListContainer", this.refreshStickyHeaders);
|
||||||
// Using the passive option to not block the main thread
|
// Using the passive option to not block the main thread
|
||||||
|
@ -420,7 +418,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={containerClasses} ref={this.ref}>
|
<div className={containerClasses}>
|
||||||
<aside className="mx_LeftPanel_roomListContainer">
|
<aside className="mx_LeftPanel_roomListContainer">
|
||||||
{ this.renderSearchDialExplore() }
|
{ this.renderSearchDialExplore() }
|
||||||
{ this.renderBreadcrumbs() }
|
{ this.renderBreadcrumbs() }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue