0
0
Fork 0

Avoid using getBoundingClientRect to calculate height (#4001)

This commit is contained in:
Nolan Lawson 2017-07-07 16:57:22 -07:00 committed by Eugen Rochko
parent 8fecd80108
commit 63b77f2320
4 changed files with 30 additions and 20 deletions

View file

@ -17,7 +17,6 @@ export default class StatusContent extends React.PureComponent {
status: ImmutablePropTypes.map.isRequired,
expanded: PropTypes.bool,
onExpandedToggle: PropTypes.func,
onHeightUpdate: PropTypes.func,
onClick: PropTypes.func,
};
@ -56,9 +55,6 @@ export default class StatusContent extends React.PureComponent {
}
componentDidUpdate () {
if (this.props.onHeightUpdate) {
this.props.onHeightUpdate();
}
this._updateStatusLinks();
}