Fix new hashtag page's items not being full-width on mobile (#9852)

Fix #9845
This commit is contained in:
Eugen Rochko
2019-01-18 20:58:11 +01:00
committed by GitHub
parent 32daecffef
commit b506ce1197
3 changed files with 11 additions and 3 deletions

View File

@ -54,7 +54,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
_measureHeight (heightJustChanged) {
if (this.props.measureHeight && this.node) {
scheduleIdleTask(() => this.node && this.setState({ height: this.node.scrollHeight }));
scheduleIdleTask(() => this.node && this.setState({ height: Math.ceil(this.node.scrollHeight) + 1 }));
if (this.props.onHeightChange && heightJustChanged) {
this.props.onHeightChange();