diff options
author | Sorin Davidoi <sorin.davidoi@gmail.com> | 2017-06-27 18:43:53 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-27 18:43:53 +0200 |
commit | 64d9c016bde538bc2f77350d160a387cc2c62ff8 (patch) | |
tree | 3dbe47d1e2c9a397eb2fe71b9e7aedb75131c1aa /app/javascript | |
parent | 12e7c81dd8739a0f83513054c0fda22e098e2458 (diff) |
fix(components/status): Up & down jump due to content being added to the DOM (#3972)
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/components/status.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |