commit: 64d9c016bde538bc2f77350d160a387cc2c62ff8
parent: 12e7c81dd8739a0f83513054c0fda22e098e2458
Author: Sorin Davidoi <sorin.davidoi@gmail.com>
Date: Tue, 27 Jun 2017 18:43:53 +0200
fix(components/status): Up & down jump due to content being added to the DOM (#3972)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;
}
}