diff options
author | Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> | 2017-04-24 11:49:08 +0900 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-24 04:49:08 +0200 |
commit | cf845fed3824d3e3587ce9b2ad752c2b3f0a2a76 (patch) | |
tree | fca5dab5974340cb98eaecd22ac41733f5c8cdd6 /app/assets/javascripts/components/features/ui/index.jsx | |
parent | 72c984e1057306d1e4df49871b9fb658fd7cbcc6 (diff) |
Hide some components rather than unmounting (#2271)
Hide some components rather than unmounting them to allow to show again quickly and keep the view state such as the scrolled offset.
Diffstat (limited to 'app/assets/javascripts/components/features/ui/index.jsx')
-rw-r--r-- | app/assets/javascripts/components/features/ui/index.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/components/features/ui/index.jsx b/app/assets/javascripts/components/features/ui/index.jsx index 1f35842d9..c92b9751b 100644 --- a/app/assets/javascripts/components/features/ui/index.jsx +++ b/app/assets/javascripts/components/features/ui/index.jsx @@ -127,9 +127,9 @@ class UI extends React.PureComponent { mountedColumns = ( <ColumnsArea> <Compose withHeader={true} /> - <HomeTimeline trackScroll={false} /> - <Notifications trackScroll={false} /> - {children} + <HomeTimeline shouldUpdateScroll={() => false} /> + <Notifications shouldUpdateScroll={() => false} /> + <div style={{display: 'flex', flex: '1 1 auto', position: 'relative'}}>{children}</div> </ColumnsArea> ); } |