Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Remove unused LeftPanel dimension tracking #7845

Merged
merged 1 commit into from
Feb 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/components/structures/LeftPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand All @@ -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
Expand Down Expand Up @@ -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() }
Expand Down