|
|
|
@ -151,14 +151,16 @@ class Status extends ImmutablePureComponent {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentWillUnmount() {
|
|
|
|
|
if (this.node && this.props.getScrollPosition) {
|
|
|
|
|
const position = this.props.getScrollPosition();
|
|
|
|
|
if (position !== null && this.node.offsetTop < position.top) {
|
|
|
|
|
requestAnimationFrame(() => {
|
|
|
|
|
this.props.updateScrollBottom(position.height - position.top);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// FIXME: Run this code only when a status is being deleted.
|
|
|
|
|
//
|
|
|
|
|
// if (this.node && this.props.getScrollPosition) {
|
|
|
|
|
// const position = this.props.getScrollPosition();
|
|
|
|
|
// if (position !== null && this.node.offsetTop < position.top) {
|
|
|
|
|
// requestAnimationFrame(() => {
|
|
|
|
|
// this.props.updateScrollBottom(position.height - position.top);
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleToggleMediaVisibility = () => {
|
|
|
|
|