Skip to content

Commit

Permalink
wh
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jul 1, 2024
1 parent d8f3610 commit 693bf6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/javascript/flavours/blobfox/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)

Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 693bf6a

Please sign in to comment.