Updates height upon collapsing

This commit is contained in:
kibigo! authored and beatrix-bitrot committed 2017-06-23 21:50:45 +00:00
1 parent 4bd7482a7a
commit 4fe45dda9a
1 file changed
+4
@@ -86,6 +86,10 @@ export default class Status extends ImmutablePureComponent {
return super.shouldComponentUpdate(nextProps, nextState);
}
componentDidUpdate (prevProps, prevState) {
if (prevState.isCollapsed !== this.state.isCollapsed) this.saveHeight();
}
componentDidMount () {
const node = this.node;