about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorSorin Davidoi <sorin.davidoi@gmail.com>2017-06-27 18:43:53 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-06-27 18:43:53 +0200
commit64d9c016bde538bc2f77350d160a387cc2c62ff8 (patch)
tree3dbe47d1e2c9a397eb2fe71b9e7aedb75131c1aa /app
parent12e7c81dd8739a0f83513054c0fda22e098e2458 (diff)
fix(components/status): Up & down jump due to content being added to the DOM (#3972)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/components/status.js2
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;
     }
   }