Avoid using getBoundingClientRect to calculate height (#4001)
This commit is contained in:
parent
8fecd80108
commit
63b77f2320
4 changed files with 30 additions and 20 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue