diff --git a/app/javascript/flavours/blobfox/components/status.jsx b/app/javascript/flavours/blobfox/components/status.jsx index e9af23f5afa4eb..76c6a09b8fe4ca 100644 --- a/app/javascript/flavours/blobfox/components/status.jsx +++ b/app/javascript/flavours/blobfox/components/status.jsx @@ -569,6 +569,9 @@ class Status extends ImmutablePureComponent { } //this.setState({ tootHeight: parseInt(node.clientHeight) }); + let tootHeight = 0; + + tootHeight = parseInt(node.clientHeight); //console.log(`raw ${node.clientHeight}, value ${this.state.tootHeight}`) @@ -869,7 +872,7 @@ class Status extends ImmutablePureComponent { expanded={isExpanded} collapsed={isCollapsed} autoCollapsed={this.state.autoCollapsed} - tootHeight={parseInt(node.clientHeight)} + tootHeight={tootHeight} collapseHeight={settings.getIn(['collapsed', 'auto', 'height'])} onExpandedToggle={this.handleExpandedToggle} onTranslate={this.handleTranslate}