[Glitch] Fix new hashtag page's items not being full-width on mobile

Port b506ce1197 to glitch-soc
This commit is contained in:
Thibaut Girka
2019-01-20 11:52:06 +01:00
parent 8001a9b97b
commit a93cb340bd
3 changed files with 11 additions and 3 deletions

View File

@ -62,7 +62,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();