]> cat aescling's git repositories - mastodon.git/commitdiff
fix(components/status): Up & down jump due to content being added to the DOM (#3972)
authorSorin Davidoi <sorin.davidoi@gmail.com>
Tue, 27 Jun 2017 16:43:53 +0000 (18:43 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 27 Jun 2017 16:43:53 +0000 (18:43 +0200)
app/javascript/mastodon/components/status.js

index 81196c82a4b0790aaa5d319607f1da56c5d1a6f3..a837659c2cd5bcf252dcedbbd99166e6021d7dff 100644 (file)
@@ -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;
     }
   }