From: Sorin Davidoi Date: Tue, 27 Jun 2017 16:43:53 +0000 (+0200) Subject: fix(components/status): Up & down jump due to content being added to the DOM (#3972) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=64d9c016bde538bc2f77350d160a387cc2c62ff8;p=mastodon.git fix(components/status): Up & down jump due to content being added to the DOM (#3972) --- diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index 81196c82a..a837659c2 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -124,7 +124,7 @@ export default class Status extends ImmutablePureComponent { saveHeight = () => { if (this.node && this.node.children.length !== 0) { - this.height = this.node.clientHeight; + this.height = this.node.getBoundingClientRect().height; } }