]> cat aescling's git repositories - mastodon.git/commitdiff
fix columns_area.js (#4528)
authorMitarashiDango <MitarashiDango@users.noreply.github.com>
Sat, 5 Aug 2017 18:33:41 +0000 (03:33 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 5 Aug 2017 18:33:41 +0000 (20:33 +0200)
app/javascript/mastodon/features/ui/components/columns_area.js

index 7652d67a08596cc6e1f276e8f4b8c0a45578e00a..47d5a2e20b900e8a756903d46d34b87035611e6f 100644 (file)
@@ -55,7 +55,7 @@ export default class ColumnsArea extends ImmutablePureComponent {
     this.lastIndex = getIndex(this.context.router.history.location.pathname);
     this.setState({ shouldAnimate: true });
 
-    if (this.props.children !== prevProps.children) {
+    if (this.props.children !== prevProps.children && !this.props.singleColumn) {
       scrollRight(this.node);
     }
   }