Update dimensions only when the tool area state changes
parent
8aa7c9a8e4
commit
44058625b9
|
|
@ -67,10 +67,12 @@ class Peers extends React.Component
|
|||
window.removeEventListener('resize', this.resizeUpdate.bind(this));
|
||||
}
|
||||
|
||||
componentDidUpdate()
|
||||
componentDidUpdate(prevProps)
|
||||
{
|
||||
if (prevProps.toolAreaOpen !== this.props.toolAreaOpen) {
|
||||
this.updateDimensions();
|
||||
}
|
||||
}
|
||||
|
||||
render()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue