@@ -165,7 +165,6 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
165
165
// layout updates.
166
166
for ( const header of targetStyles . keys ( ) ) {
167
167
const style = targetStyles . get ( header ) ;
168
- const headerContainer = header . parentElement ; // .mx_RoomSublist2_headerContainer
169
168
170
169
if ( style . makeInvisible ) {
171
170
// we will have already removed the 'display: none', so add it back.
@@ -205,9 +204,6 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
205
204
if ( ! header . classList . contains ( "mx_RoomSublist2_headerContainer_sticky" ) ) {
206
205
header . classList . add ( "mx_RoomSublist2_headerContainer_sticky" ) ;
207
206
}
208
- if ( ! headerContainer . classList . contains ( "mx_RoomSublist2_headerContainer_hasSticky" ) ) {
209
- headerContainer . classList . add ( "mx_RoomSublist2_headerContainer_hasSticky" ) ;
210
- }
211
207
212
208
const newWidth = `${ headerStickyWidth } px` ;
213
209
if ( header . style . width !== newWidth ) {
@@ -217,9 +213,6 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
217
213
if ( header . classList . contains ( "mx_RoomSublist2_headerContainer_sticky" ) ) {
218
214
header . classList . remove ( "mx_RoomSublist2_headerContainer_sticky" ) ;
219
215
}
220
- if ( headerContainer . classList . contains ( "mx_RoomSublist2_headerContainer_hasSticky" ) ) {
221
- headerContainer . classList . remove ( "mx_RoomSublist2_headerContainer_hasSticky" ) ;
222
- }
223
216
if ( header . style . width ) {
224
217
header . style . removeProperty ( 'width' ) ;
225
218
}
0 commit comments