diff options
author | Nolan Lawson <nolan@nolanlawson.com> | 2017-07-07 16:57:22 -0700 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-08 01:57:22 +0200 |
commit | 63b77f23202a6dece419e2eb7180395b2e276b09 (patch) | |
tree | cfde074ee8cbecc3efa41ae85100f7c020b22e84 /app/javascript/mastodon/components/status_content.js | |
parent | 8fecd8010801c17d0d086fbb27d4d9a67ccbb6af (diff) |
Avoid using getBoundingClientRect to calculate height (#4001)
Diffstat (limited to 'app/javascript/mastodon/components/status_content.js')
-rw-r--r-- | app/javascript/mastodon/components/status_content.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/javascript/mastodon/components/status_content.js b/app/javascript/mastodon/components/status_content.js index 78656571d..02b4c8402 100644 --- a/app/javascript/mastodon/components/status_content.js +++ b/app/javascript/mastodon/components/status_content.js @@ -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(); } |