From 5ee45fa5715af356f422a3b768359a52d94f4b79 Mon Sep 17 00:00:00 2001 From: MitarashiDango Date: Sun, 6 Aug 2017 03:33:41 +0900 Subject: [PATCH] fix columns_area.js (#4528) --- app/javascript/mastodon/features/ui/components/columns_area.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/ui/components/columns_area.js b/app/javascript/mastodon/features/ui/components/columns_area.js index 7652d67a0..47d5a2e20 100644 --- a/app/javascript/mastodon/features/ui/components/columns_area.js +++ b/app/javascript/mastodon/features/ui/components/columns_area.js @@ -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); } }